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* )
Défini dans l'en-tête <functional>
template <>
class bit_xor < void > ;
(depuis C++14)

std:: bit_xor < void > est une spécialisation de std::bit_xor avec déduction du type de paramètre et de retour.

Table des matières

Types imbriqués

Type imbriqué Définition
is_transparent unspecified

Fonctions membres

operator()
applique operator^ à lhs et rhs
(fonction membre publique)

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

Retourne le résultat de std:: forward < T > ( lhs ) ^ std:: forward < U > ( rhs ) .

Paramètres

lhs, rhs - valeurs à soumettre à un XOR bit à bit

Valeur de retour

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

Exemple