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* )
헤더 파일에 정의됨 <functional>
template <>
class logical_and < void > ;
(C++14 이후)

std:: logical_and < void > 는 매개변수와 반환 타입이 추론된 std::logical_and 의 특수화입니다.

목차

중첩 타입

중첩 타입 정의
is_transparent unspecified

멤버 함수

operator()
operator&& lhs rhs 에 적용
(public member function)

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

lhs && rhs 의 결과를 반환합니다.

매개변수

lhs, rhs - 논리 AND 연산을 수행할 값들

반환 값

lhs && rhs 의 결과.

예제