std::make_exception_ptr
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. |
Elemento definito nell'header <exception> | ||
template<class E > std::exception_ptr make_exception_ptr( E e ) | (dal C++11) | |
Crea un std::exception_ptr che contiene un riferimento a una copia di
e
, come per l'esecuzioneOriginal:
Creates an std::exception_ptr that holds a reference to a copy of
e
, as if by executingThe 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.
try{
throw e;
}catch(...){
returnstd::current_exception();
}
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'istanza di std::exception_ptr in possesso di un riferimento alla copia di
e
, o di un'istanza di std::bad_alloc o un'istanza di std::bad_exception (vedi std::current_exception).Original:
An instance of std::exception_ptr holding a reference to the copy of
e
, or to an instance of std::bad_alloc or to an instance of std::bad_exception (see std::current_exception).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]Vedi anche
(C++11) | captures the current exception in a std::exception_ptr (funzione) |