std::make_exception_ptr — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Déclaré dans l'en-tête <exception> |
||
|
|
(depuis C++11) | |
Crée un std::exception_ptr qui contient une référence à une copie de e, comme par l'exécution
Original:
Creates an std::exception_ptr that holds a reference to a copy of e, as if by executing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
try { throw e; } catch(...) { return std::current_exception(); }
Paramètres
(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Retourne la valeur
Une instance de std::exception_ptr contient une référence à la copie de e, ou à une instance de std::bad_alloc ou à une instance de std::bad_exception (voir 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.
Exceptions
Voir aussi
capture l'exception en cours dans un std::exception_ptr Original: captures the current exception in a std::exception_ptr The text has been machine-translated via Google Translate. (fonction) [edit] | |