std::logical_or
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 logical_or; |
||
Oggetto funzione per l'esecuzione di OR logico (disgiunzione logica). Invita efficace operator|| su
T
tipo.Original:
Function object for performing logical OR (logical disjunction). Effectively calls 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] 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() |
restituisce l'OR logico dei due argomenti Original: returns the logical OR of the two arguments 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 :: logical_or ::Original:std::logical_or::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::logical_or::
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; |
||
Returns the logical OR of lhs
and rhs
.
Parameters
lhs, rhs | - | per calcolare valori di OR logico
Original: values to compute logical OR of The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
The result of lhs || rhs.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const { return lhs || rhs; } |