operator==,!=(std::experimental::function)
From cppreference.com
< cpp | experimental | function
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Library fundamentals
Polymorphic allocator library
Convenience aliases for containers using polymorphic_allocator | ||||
| Memory resource classes | ||||
| Global memory resources | ||||
| Type-erased allocator support for existing classes | ||||
| Defined in header <experimental/functional>
|
||
| template< class R, class... ArgTypes > bool operator==( const std::experimental::function<R(ArgTypes...)>& f, |
(1) | (library fundamentals TS) |
| template< class R, class... ArgTypes > bool operator==( std::nullptr_t, |
(2) | (library fundamentals TS) (removed in library fundamentals TS v3) |
| template< class R, class... ArgTypes > bool operator!=( const std::experimental::function<R(ArgTypes...)>& f, |
(3) | (library fundamentals TS) (removed in library fundamentals TS v3) |
| template< class R, class... ArgTypes > bool operator!=( std::nullptr_t, |
(4) | (library fundamentals TS) (removed in library fundamentals TS v3) |
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.
|
The |
(library fundamentals TS v3) |
[edit] Parameters
| f | - | std::experimental::function to compare
|
[edit] Return value
1,2) !f
3,4) (bool) f
[edit] See also
| (removed in C++20) |
compares a std::function with nullptr (function template) [edit] |