operator==,!=(std::experimental::function) (3) - Linux Manuals

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

NAME

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

Synopsis


template< class R, class... ArgTypes >
bool operator==( const std::experimental::function<R(ArgTypes...)>& f, (1) (library fundamentals TS)
std::nullptr_t ) noexcept;
template< class R, class... ArgTypes >
bool operator==( std::nullptr_t, (2) (library fundamentals TS)
const std::experimental::function<R(ArgTypes...)>& f ) noexcept;
template< class R, class... ArgTypes >
bool operator!=( const std::experimental::function<R(ArgTypes...)>& f, (3) (library fundamentals TS)
std::nullptr_t ) noexcept;
template< class R, class... ArgTypes >
bool operator!=( std::nullptr_t, (4) (library fundamentals TS)
const std::experimental::function<R(ArgTypes...)>& f ) noexcept;


Compares a std::experimental::function with a null pointer. Empty functions (that is, functions without a callable target) compare equal, non-empty functions compare non-equal.

Parameters


f - std::experimental::function to compare

Return value


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

See also


           compares a std::function with nullptr
operator== (function template)
operator!=