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* )
Definido en el encabezado <functional>
template <>
class logical_not < void > ;
(desde C++14)

std:: logical_not < void > es una especialización de std::logical_not con tipo de parámetro y retorno deducidos.

Contenidos

Tipos anidados

Tipo anidado Definición
is_transparent unspecified

Funciones miembro

operator()
aplica operator! a su argumento
(función miembro pública)

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

template < class T >

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

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

Devuelve el resultado de ! std:: forward < T > ( arg ) .

Parámetros

arg - valor al que aplicar la negación lógica

Valor de retorno

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

Ejemplo