std::logical_and
De cppreference.com
< cpp | utility | functional
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <functional> | ||
template<class T > struct logical_and; | ||
Función objeto de realizar lógico AND (conjunción lógica). Efectivamente llama operator&& en
T
tipo .Original:
Function object for performing logical AND (logical conjunction). 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.
Contenido |
[editar]Tipos de miembros
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 |
[editar]Las funciones miembro
operator() | devuelve el AND lógico de los dos argumentos Original: returns the logical AND 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. (función miembro pública) |
std :: logical_and ::Original:std::logical_and::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_and::
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 AND of lhs
and rhs
.
Parameters
lhs, rhs | - | valores para calcular lógico de Original: values to compute logical AND 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;} |