std::function::target
Da cppreference.com.
< cpp | utility | functional | function
![]() | 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. |
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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica]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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Eccezioni
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]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) |