operator==,!=(std::function)
De cppreference.com
< cpp | utility | functional | function
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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) | |
Compara un
std::function
con un puntero nulo .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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Parámetros
f | - | std::function para compararOriginal: std::function to compareThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
1-2) !f
3-4) (bool) f
[editar] Ejemplo
This section is incomplete Reason: no example |