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* )
Definiert im Header <functional>
template <>
class logical_and < void > ;
(seit C++14)

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

Inhaltsverzeichnis

Verschachtelte Typen

Geschachtelter Typ Definition
is_transparent unspecified

Memberfunktionen

operator()
wendet operator&& auf lhs und rhs an
(öffentliche Elementfunktion)

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 ) ) ;

Gibt das Ergebnis von lhs && rhs zurück.

Parameter

lhs, rhs - Werte für logisches UND

Rückgabewert

Das Ergebnis von lhs && rhs .

Beispiel