Namespaces
Variants

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

std:: logical_and < void > est une spécialisation de std::logical_and 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::logical_and<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 lhs && rhs .

Paramètres

lhs, rhs - valeurs à soumettre à l'opérateur ET logique

Valeur de retour

Le résultat de lhs && rhs .

Exemple