std::bit_xor<void>
Определено в заголовке <functional> | ||
|---|---|---|
template<> class bit_xor<void>; | (с C++14) |
std::bit_xor<void> является специализацией std::bit_xor с параметром и типом возвращаемого значения, выведенными по умолчанию.
Вложенные типы
| Вложенный тип | Определение |
|---|---|
is_transparent | неопределён |
Члены-функции
| 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).
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/functional/bit_xor_void