Namespaces
Variants

std:: bit_or<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_or < void > ;
(desde C++14)

std:: bit_or < void > es una especialización de std::bit_or 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_or<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 el OR bit a bit

Valor de retorno

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

Ejemplo