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

From cppreference.com
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
 
template< class R, class... ArgTypes >

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

                 std::nullptr_t ) noexcept;
(1) (library fundamentals TS)
template< class R, class... ArgTypes >

bool operator==( std::nullptr_t,

                 const std::experimental::function<R(ArgTypes...)>& f ) noexcept;
(2) (library fundamentals TS)
template< class R, class... ArgTypes >

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

                 std::nullptr_t ) noexcept;
(3) (library fundamentals TS)
template< class R, class... ArgTypes >

bool operator!=( std::nullptr_t,

                 const std::experimental::function<R(ArgTypes...)>& f ) noexcept;
(4) (library fundamentals TS)

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
(function template)