Espacios de nombres
Variantes
Acciones

std::logical_or

De cppreference.com
< cpp‎ | utility‎ | functional
 
 
Biblioteca de servicios
 
Objetos función
Envoltorios de funciones
(C++11)
(C++11)
Aplicación parcial de funciones
(C++20)
(C++11)
Invocación de funciones
(C++17)(C++23)
Objeto función identidad
(C++20)
Envoltorios de referencias
(C++11)(C++11)
Envoltorios de operador transparentes
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
Negadores
(C++17)
Buscadores
Vinculadores y adaptadores antiguos
(hasta C++17)
(hasta C++17)
(hasta C++17)
(hasta C++17)
(hasta C++17)(hasta C++17)(hasta C++17)(hasta C++17)
(hasta C++20)
(hasta C++20)
(hasta C++17)(hasta C++17)
(hasta C++17)(hasta C++17)

(hasta C++17)
(hasta C++17)(hasta C++17)(hasta C++17)(hasta C++17)
(hasta C++20)
(hasta C++20)
 
Definido en el archivo de encabezado <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_typebool
first_argument_typeT
second_argument_typeT

[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ública)

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;}
close