Namespaces
Variants

std:: logical_or<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_or < void > ;
(seit C++14)

std:: logical_or < void > ist eine Spezialisierung von std::logical_or 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_or<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 std:: forward < T > ( lhs ) || std:: forward < U > ( rhs ) zurück.

Parameter

lhs, rhs - Werte für logisches ODER

Rückgabewert

std:: forward < T > ( lhs ) || std:: forward < U > ( rhs ) .

Beispiel