Namespaces
Variants

std:: bit_not<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_not < void > ;
(depuis C++14)

std:: bit_not < void > est une spécialisation de std::bit_not 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~ à son argument
(fonction membre publique)

std::bit_not<void>:: operator()

template < class T >

constexpr auto operator ( ) ( T && arg ) const

- > decltype ( ~ std:: forward < T > ( arg ) ) ;

Retourne le résultat de ~ std:: forward < T > ( arg ) .

Paramètres

arg - valeur à inverser bit à bit

Valeur de retour

~ std:: forward < T > ( arg ) .

Exemple