std::less_equal - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <functional> |
||
|
|
||
Funzionale oggetto per effettuare confronti. Implementa operator<= su T tipo.
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.
Note
Se il built-in operator<= non fornisce totale dell'ordine puntatori, una specializzazione parziale di std::less_equal per tipi puntatore viene fornito, che garantisce ordine totale.
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.
Membri tipi
tipo Original: type The text has been machine-translated via Google Translate. |
definition |
result_type
|
bool
|
first_argument_type
|
T
|
second_argument_type
|
T
|
Membri funzioni
controlla se il primo argomento è meno o di' uguale al secondo Original: checks if the first argument is less than or equal to the second The text has been machine-translated via Google Translate. (metodo pubblico) | |
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()
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.
<tbody> </tbody>
|
|
||
Checks if lhs is less than or equal to rhs.
Parameters
| lhs, rhs | - | valori da confrontare Original: values to compare The text has been machine-translated via Google Translate. |
Return value
true if lhs <= rhs, false otherwise.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const { return lhs <= rhs; }