std::terminate
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>
|
||
[[noreturn]] void terminate(); |
||
std::terminate()
es llamado por el C + + tiempo de ejecución cuando el manejo de excepciones no funciona por alguna de las razones siguientes:Original:
std::terminate()
is called by the C++ runtime when exception handling fails for any of the following reasons: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.
se produce una excepción y no se detecta (que es definido por la implantación si alguna desenredo de pila que se hace en este caso)
2) Original:
an exception is thrown and not caught (it is implementation-defined whether any stack unwinding is done in this case)
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.
se produce una excepción durante el manejo de excepciones (por ejemplo, desde un destructor de un objeto local, o de una función que tuvo que ser llamado durante el manejo de excepciones)
3) Original:
an exception is thrown during exception handling (e.g. from a destructor of some local object, or from a function that had to be called during exception handling)
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.
el constructor o el destructor de un objeto estático o local de subprocesos produce una excepción
4) Original:
the constructor or the destructor of a static or thread-local object throws an 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.
una función registrada con std::atexit o std::at_quick_exit produce una excepción
5) Original:
a function registered with std::atexit or std::at_quick_exit throws an 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.
un noexcept especificación es violada (es definido por la implantación si alguna desenredo de pila que se hace en este caso)
6) Original:
a noexcept especificación is violated (it is implementation-defined whether any stack unwinding is done in this case)
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.
un especificación de excepciones dinámicas es violada y el controlador predeterminado para std::unexpected ejecuta
7) Original:
a especificación de excepciones dinámicas is violated and the default handler for std::unexpected is executed
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.
un controlador que no sea predeterminado para std::unexpected produce una excepción que viola la especificación previamente violado excepción dinámico, si la especificación no std::bad_exception incluir
8) Original:
a non-default handler for std::unexpected throws an exception that violates the previously violated dynamic exception specification, if the specification does not include std::bad_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.
std::nested_exception::rethrow_nested se llama para un objeto que no está sosteniendo una excepción capturada
9) Original:
std::nested_exception::rethrow_nested is called for an object that isn't holding a captured 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.
se produce una excepción de la función inicial de std::thread
10) Original:
an exception is thrown from the initial function of std::thread
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.
un std::thread acoplable se destruye o asignado
Original:
a joinable std::thread is destroyed or assigned to
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.
std::terminate()
también se puede llamar directamente desde el programa .Original:
std::terminate()
may also be called directly from the program.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.
En cualquier caso, la llama
std::terminate
std::terminate_handler instalado actualmente. El defecto std::terminate_handler llamadas std::abort .Original:
In any case,
std::terminate
calls the currently installed std::terminate_handler. The default std::terminate_handler calls std::abort.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.
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
(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] Excepciones
[editar] Ver también
El tipo de la función llamada por std::terminate. (typedef) |