◐ Shell
clean mode source ↗

std::function::operator bool - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

explicit operator bool() const;

(desde C++11)

Verifica se *this armazena um alvo função exigível, ou seja, não está vazia.

Original:

Checks whether *this stores a callable function target, i.e. is not empty.

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

Parâmetros

(Nenhum)

Original:

(none)

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

Valor de retorno

true se *this armazena uma função alvo pode ser chamado, caso contrário false.

Original:

true if *this stores a callable function target, false otherwise.

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

Exceções