[ Web Proxy ]
URL:
Viewing: http://es.cppreference.com/cpp/error/unexpected_handler [Back]  [Original]

std::unexpected_handler - cppreference.com
cppreference.com
Espacios de nombres
Variantes

std::unexpected_handler

De cppreference.com
 
 
Biblioteca de servicios
Apoyo del lenguaje
Apoyo de tipos (tipos bsicos, RTTI)
Macros de prueba de caracterstica de la biblioteca (C++20)
Servicios de programa
Funciones varidicas
Apoyo de corrutinas (C++20)
Apoyo de contratos (C++26)
Comparacin de tres vas (C++20)
(C++20)
(C++20)(C++20)(C++20)  
(C++20)(C++20)(C++20)

 
 
Definido en el archivo de encabezado <exception>
typedef void (*unexpected_handler)();
(en desuso)
std::unexpected_handler es el tipo de puntero de funcin (puntero a una funcin que no tiene argumentos y devuelve void), que se instala y se pregunt por las funciones std::set_unexpected y std::get_unexpected y llamado por std::unexpected .
Original:
std::unexpected_handler is the function pointer type (pointer to function that takes no arguments and returns void), which is installed and queried by the functions std::set_unexpected and std::get_unexpected and called by std::unexpected.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La implementacin en C + + proporciona una funcin predeterminada std::unexpected_handler, que llama std::terminate(). Si el valor de puntero nulo se instala (por medio de std::set_terminate), la aplicacin puede restaurar el controlador predeterminado en lugar .
Original:
The C++ implementation provides a default std::unexpected_handler function, which calls std::terminate(). If the null pointer value is installed (by means of std::set_terminate), the implementation may restore the default handler instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
A std::unexpected_handler definido por el usuario que se espera de terminar el programa o una excepcin si se produce una excepcin, una de las tres situaciones siguientes se pueden encontrar:....
Original:
A user-defined std::unexpected_handler is expected to either terminate the program or throw an exception. If it throws an exception, one of the following three situations may be encountered:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

la excepcin lanzada por std::unexpected_handler satisface la especificacin de excepciones dinmica que se viol antes La nueva excepcin se deja escapar la funcin y el desenredo de pila sigue .
Original:
the exception thrown by std::unexpected_handler satisfies the dynamic exception specification that was violated earlier. The new exception is allowed to escape the function and stack unwinding continues.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

la excepcin lanzada por std::unexpected_handler an viola la especificacin de excepciones:...
Original:
the exception thrown by std::unexpected_handler still violates the exception specification:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2a), sin embargo, la especificacin de excepcin permite std::bad_exception: el objeto excepcin que se destruye, y std::bad_exception es construido por el C + + tiempo de ejecucin y arrojado en lugar .
Original:
2a) however, the exception specification allows std::bad_exception: the thrown exception object is destroyed, and std::bad_exception is constructed by the C++ runtime and thrown instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2b) la especificacin de la excepcin no permite std::bad_exception: std::terminate() se llama .
Original:
2b) the exception specification does not allow std::bad_exception: std::terminate() is called.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ver tambin

(en desuso)
Funcin llamada cuando la especificacin de excepciones dinmica es violada.
(funcin) [editar]
(en desuso)
Cambia la funcin a ser llamada por std::unexpected.
(funcin) [editar]
(C++11)(en desuso)
Obtiene el controlador no esperado (unexpected_handler) actual.
(funcin) [editar]

Web Proxy Viewer  |  New URL  |  Original Page