Namespaces
Variants

std:: bit_xor<void>

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
Definido en el encabezado <functional>
template <>
class bit_xor < void > ;
(desde C++14)

std:: bit_xor < void > es una especialización de std::bit_xor con tipo de parámetro y retorno deducidos.

Contenidos

Tipos anidados

Tipo anidado Definición
is_transparent unspecified

Funciones miembro

operator()
aplica operator^ a lhs y rhs
(función miembro pública)

std::bit_xor<void>:: operator()

template < class T, class U >

constexpr auto operator ( ) ( T && lhs, U && rhs ) const

- > decltype ( std:: forward < T > ( lhs ) ^ std:: forward < U > ( rhs ) ) ;

Devuelve el resultado de std:: forward < T > ( lhs ) ^ std:: forward < U > ( rhs ) .

Parámetros

lhs, rhs - valores para aplicar XOR bit a bit

Valor de retorno

std:: forward < T > ( lhs ) ^ std:: forward < U > ( rhs ) .

Ejemplo