Namespaces
Variants

std:: logical_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* )
Definiert in Header <functional>
template <>
class logical_not < void > ;
(seit C++14)

std:: logical_not < void > ist eine Spezialisierung von std::logical_not mit abgeleitetem Parameter- und Rückgabetyp.

Inhaltsverzeichnis

Verschachtelte Typen

Geschachtelter Typ Definition
is_transparent unspecified

Memberfunktionen

operator()
wendet operator! auf sein Argument an
(öffentliche Elementfunktion)

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

template < class T >

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

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

Gibt das Ergebnis von ! std:: forward < T > ( arg ) zurück.

Parameter

arg - Wert, auf den logisches NOT angewendet wird

Rückgabewert

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

Beispiel