◐ Shell
clean mode source ↗

std::function::target - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

template< class T > T* target();

(1) (dal C++11)

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

(2) (dal C++11)

Restituisce un puntatore al target funzione memorizzata.

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.

Parametri

(Nessuno)

Original:

(none)

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

Valore di ritorno

Un puntatore alla funzione memorizzata se target_type() == typeid(T), altrimenti un puntatore nullo.

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.

Eccezioni

Esempio

Vedi anche

ottiene il typeid del target memorizzato di un 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.


(metodo pubblico) [modifica]