std::bit_and<void>
Определено в заголовке <functional> | ||
|---|---|---|
template<> class bit_and<void>; | (с C++14) |
std::bit_and<void> является специализацией std::bit_and с параметрами и возвращаемым значением, которые выводятся автоматически.
Вложенные типы
| Вложенный тип | Определение |
|---|---|
is_transparent | неопределено |
Члены
| operator() | применяет operator& к lhs и rhs (общедоступный член-функция) |
std::bit_and<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 | - | значения для побитового И |
Возвращаемое значение
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_and_void