Namespaces
Variants

operator==,!= (std::experimental::function)

From cppreference.net
헤더에 정의됨 <experimental/functional>
template < class R, class ... ArgTypes >

bool operator == ( const std:: experimental :: function < R ( ArgTypes... ) > & f,

std:: nullptr_t ) noexcept ;
(1) (라이브러리 fundamentals TS)
template < class R, class ... ArgTypes >

bool operator == ( std:: nullptr_t ,

const std:: experimental :: function < R ( ArgTypes... ) > & f ) noexcept ;
(2) (라이브러리 fundamentals TS)
(라이브러리 fundamentals TS v3에서 제거됨)
template < class R, class ... ArgTypes >

bool operator ! = ( const std:: experimental :: function < R ( ArgTypes... ) > & f,

std:: nullptr_t ) noexcept ;
(3) (라이브러리 fundamentals TS)
(라이브러리 fundamentals TS v3에서 제거됨)
template < class R, class ... ArgTypes >

bool operator ! = ( std:: nullptr_t ,

const std:: experimental :: function < R ( ArgTypes... ) > & f ) noexcept ;
(4) (라이브러리 fundamentals TS)
(라이브러리 fundamentals TS v3에서 제거됨)

std::experimental::function 을 null 포인터와 비교합니다. 빈 함수(즉, 호출 가능한 대상이 없는 함수)는 동일하게 비교되고, 비어 있지 않은 함수는 동일하지 않게 비교됩니다.

!= 연산자는 합성된 operator== 로부터 생성됩니다.

(라이브러리 펀더멘털 TS v3)

매개변수

f - std::experimental::function 와 비교할 대상

반환값

1,2) ! f
3,4) ( bool ) f

참고 항목

(C++20에서 제거됨)
std::function nullptr 와 비교
(함수 템플릿)