Espacios de nombres
Variantes
Acciones

std::bit_xor

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)
(C++14)
(C++14)
(C++14)
Negadores
(C++17)
Buscadores
Comparadores restringidos
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 bit_xor;
Función objeto de realizar bit a bit XOR. Efectivamente llama operator^ en T tipo .
Original:
Function object for performing bitwise XOR. 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 T
first_argument_type T
second_argument_type T

[editar] Las funciones miembro

operator()
devuelve el resultado de XOR bit a bit de dos argumentos
Original:
returns the result of bitwise XOR of 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 :: bit_xor ::
Original:
std::bit_xor::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator()

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

Returns the result of bitwise XOR of lhs and rhs.

Parameters

lhs, rhs -
valores para calcular XOR bit a bit de
Original:
values to compute bitwise XOR 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

T operator()(const T &lhs, const T &rhs) const 
{
    return lhs ^ rhs;
}