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

std:: bit_or < void > est une spécialisation de std::bit_or 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_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 ) ) ;

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

Paramètres

lhs, rhs - valeurs à combiner par OU binaire

Valeur de retour

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

Exemple