cpp/utility/functional/less equal: Unterschied zwischen den Versionen
Aus cppreference.com
P12 (Diskussion | Beiträge) K 1 Version: Translate from the English version |
P12bot (Diskussion | Beiträge) K Use {{lc}}. Update links. Various fixes. |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 2: | Zeile 2: | ||
{{cpp/title|less_equal}} | {{cpp/title|less_equal}} | ||
{{cpp/utility/functional/navbar}} | {{cpp/utility/functional/navbar}} | ||
{{ | {{begin}} | ||
{{ | {{header | functional }} | ||
{{ | {{| | ||
template< class T > | template< class T > | ||
struct less_equal; | struct less_equal; | ||
}} | }} | ||
{{ | {{end}} | ||
{{tr|Function-Objekt zum Durchführen von Vergleichen. Implementiert {{c|operator<{{=}}}} vom Typ {{tt|T}} .|Function object for performing comparisons. Implements {{c|operator<{{=}}}} on type {{tt|T}}.}} | {{tr|Function-Objekt zum Durchführen von Vergleichen. Implementiert {{c|operator<{{=}}}} vom Typ {{tt|T}} .|Function object for performing comparisons. Implements {{c|operator<{{=}}}} on type {{tt|T}}.}} | ||
===Notes=== | ===Notes=== | ||
{{cpp/utility/functional/pointer_order|operator<{{=}}|std::less_equal}} | {{cpp/utility/functional/pointer_order|operator<{{=}}|std::less_equal}} | ||
===Mitglied Typen=== | ===Mitglied Typen=== | ||
{{ | {{begin}} | ||
{{ | {{hitem |{{tr| Typ | type }}| definition }} | ||
{{ | {{| {{tt|result_type}} | {{tt|bool}}}} | ||
{{ | {{| {{tt|first_argument_type}} | {{tt|T}} }} | ||
{{ | {{| {{tt|second_argument_type}} | {{tt|T}} }} | ||
{{ | {{end}} | ||
===Member-Funktionen=== | ===Member-Funktionen=== | ||
{{ | {{begin}} | ||
{{ | {{mem fun | operator() | nolink=true |{{tr| prüft, ob das erste Argument'' weniger'' als oder gleich'''' auf die zweite| checks if the first argument is ''less'' than or ''equal'' to the second}}}} | ||
{{ | {{end}} | ||
{{member | {{small|{{tr|std :: less_equal ::|std::less_equal::}}}}operator() | 2= | {{member | {{small|{{tr|std :: less_equal ::|std::less_equal::}}}}operator() | 2= | ||
| Zeile 36: | Zeile 36: | ||
===Parameters=== | ===Parameters=== | ||
{{ | {{begin}} | ||
{{ | {{| lhs, rhs |{{tr| Werten zu vergleichen| values to compare}}}} | ||
{{ | {{end}} | ||
===Return value=== | ===Return value=== | ||
| Zeile 54: | Zeile 54: | ||
}} | }} | ||
}} | }} | ||
Aktuelle Version vom 2. Juli 2013, 04:07 Uhr
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <functional>
|
||
template< class T > struct less_equal; |
||
Function-Objekt zum Durchführen von Vergleichen. Implementiert
operator<= vom Typ T .Original:
Function object for performing comparisons. Implements
operator<= on type T.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Notes
Wenn die eingebaute
operator<= liefert keine totale Ordnung für Zeiger, wird eine partielle Spezialisierung std::less_equal für Zeigertypen vorgesehen, die garantiert totale Ordnung .Original:
If the built-in
operator<= does not provide total order for pointers, a partial specialization of std::less_equal for pointer types is provided, which guarantees total order.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Mitglied Typen
Typ
Original: type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
definition |
result_type
|
bool
|
first_argument_type
|
T
|
second_argument_type
|
T
|
Member-Funktionen
operator() |
prüft, ob das erste Argument weniger als oder gleich' auf die zweite Original: checks if the first argument is less than or equal to the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
std :: less_equal ::Original:std::less_equal::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.operator()
<tbody>
</tbody>Original:
std::less_equal::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
bool operator()( const T& lhs, const T& rhs ) const; |
||
Checks if lhs is less than or equal to rhs.
Parameters
| lhs, rhs | - | Werten zu vergleichen
Original: values to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
true if lhs <= rhs, false otherwise.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const
{
return lhs <= rhs;
}
|