Namespaces
Variants

operator== (std::copyable_function)

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* )
friend bool operator == ( const std:: copyable_function & f, std:: nullptr_t ) noexcept ;
(C++26부터)

래퍼 f 가 호출 가능한 대상을 가지고 있는지 여부를 std::nullptr_t 와 형식적으로 비교하여 확인합니다. 빈 래퍼(즉, 대상이 없는 래퍼)는 동일하게 비교되고, 비어 있지 않은 함수들은 동일하지 않게 비교됩니다.

이 함수는 일반적인 비한정 이름 탐색 또는 한정 이름 탐색 으로는 보이지 않으며, 인수가 std::copyable_function<FunctionType> 의 연관 클래스일 때에만 인수 의존 이름 탐색 에 의해서만 찾을 수 있습니다.

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

목차

매개변수

f - std::copyable_function 비교 대상

반환값

! f .

예제

참고 항목

std::copyable_function 이 대상을 가지고 있는지 확인합니다
(public member function)
(removed in C++20)
std::function nullptr 를 비교합니다
(function template)
(C++23)
std::move_only_function nullptr 를 비교합니다
(function)