◐ Shell
clean mode source ↗

std::function::target - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class T > T* target();

(1) (desde C++11)

template< class T > const T* target() const;

(2) (desde C++11)

Retorna um ponteiro para o alvo função armazenada.

Original:

Returns a pointer to the stored function target.

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

Um ponteiro para a função armazenada se target_type() == typeid(T), caso contrário, um ponteiro nulo.

Original:

A pointer to the stored function if target_type() == typeid(T), otherwise 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.

Exceções

Exemplo

Veja também

obtém o typeid do alvo armazenados de uma std::function

Original:

obtains the typeid of the stored target of a std::function

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


(função pública membro) [edit]