std::less
Da cppreference.com.
< cpp | utility | functional
![]() |
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. |
Elemento definito nell'header <functional>
|
||
template< class T > struct less; |
||
funzionale oggetto per effettuare confronti Utilizza operator< del tipo
T
.Original:
Function object for performing comparisons. Uses 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.
Indice |
[modifica] Note
Se il built-in operator< non fornisce totale dell'ordine puntatori, una specializzazione parziale di
std::less
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
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.
[modifica] Membri tipi
tipo
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
|
[modifica] Membri funzioni
operator() |
controlla se il primo argomento è' minore del secondo Original: checks if the first argument is less than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |
std....: :........ meno ::Original:std::less::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.operator()
Original:
std::less::
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 whether lhs
is less than rhs
.
Parameters
lhs, rhs | - | valori da confrontare
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; } |
[modifica] Vedi anche
(C++11) |
fornisce di tipo misto proprietario basato su ordinamento di puntatori condivisi e debole Original: provides mixed-type owner-based ordering of shared and weak pointers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe template) |