◐ Shell
clean mode source ↗

operator==,!=(std::function) — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class R, class... ArgTypes > bool operator==( const function<R(ArgTypes...)>& f, std::nullptr_t );

(1)

template< class R, class... ArgTypes > bool operator==( std::nullptr_t, const function<R(ArgTypes...)>& f );

(2)

template< class R, class... ArgTypes > bool operator!=( const function<R(ArgTypes...)>& f, std::nullptr_t );

(3)

template< class R, class... ArgTypes > bool operator!=( std::nullptr_t, const function<R(ArgTypes...)>& f );

(4)

Compare une std::function avec un pointeur nul .

Original:

Compares a std::function with a null pointer.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

f -

std::function à comparer

Original:

std::function to compare

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

1-2) !f

3-4) (bool) f

Exemple