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* )
Определено в заголовочном файле <functional>
template <>
class bit_xor < void > ;
(начиная с C++14)

std:: bit_xor < void > является специализацией std::bit_xor с выведенными типами параметров и возвращаемого значения.

Содержание

Вложенные типы

Вложенный тип Определение
is_transparent unspecified

Функции-члены

operator()
применяет operator^ к lhs и rhs
(публичная функция-член)

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

Возвращает результат std:: forward < T > ( lhs ) ^ std:: forward < U > ( rhs ) .

Параметры

lhs, rhs - значения для побитового XOR

Возвращаемое значение

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

Пример