Espacios de nombres
Variantes
Acciones

std::logical_or

De cppreference.com
< cpp‎ | utility‎ | functional

 
 
Utilidades de la biblioteca
Escriba apoyo (basic types, RTTI, type traits)
Gestión de memoria dinámica
Gestión de errores
Programa de servicios públicos
Funciones variadic
Fecha y hora
Objetos Function
(C++11)
Operadores relacionales
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pares y tuplas
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Cambiar, hacia adelante y mover
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
 
Objetos Function


Envoltorios de función
Original:
Function wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
Enlazar
Original:
Bind
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Envolturas de referencia
Original:
Reference wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)(C++11)
Envoltorios Operador
Original:
Operator wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Negadores
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Desaprobado aglutinantes y adaptadores
Original:
Deprecated binders and adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)(obsoleto)(obsoleto)(obsoleto)
(obsoleto)
(obsoleto)(obsoleto)
(obsoleto)(obsoleto)
 
Definido en la cabecera <functional>
template< class T >
struct logical_or;
Función objeto de realizar lógico OR (disyunción lógica). Efectivamente llama operator|| en 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.

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 OR lógico de los dos argumentos
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.

(función miembro público)

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()

bool operator()( const T& lhs, const T& rhs ) const;

Returns the logical OR of lhs and rhs.

Parameters

lhs, rhs -
valores para calcular OR lógico de
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;
}