std::make_exception_ptr
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <exception>
|
||
template< class E > std::exception_ptr make_exception_ptr( E e ) |
(desde C++11) | |
Crea un std::exception_ptr que contiene una referencia a una copia de
e
, como si mediante la ejecuciónOriginal:
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(...) {
return std::current_exception();
}
Contenido |
[editar] Parámetros
(Ninguno)
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.
[editar] Valor de retorno
Una instancia de std::exception_ptr contiene una referencia a la copia de
e
, o a una instancia de std::bad_alloc o a una instancia de std::bad_exception (ver 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.
[editar] Excepciones
[editar] Ver también
(C++11) |
Captura la excepción actual en un std::exception_ptr (función) |