◐ Shell
clean mode source ↗

std::terminate - cppreference.com

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.

1)

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)

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.

2)

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)

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.

3)

el constructor o el destructor de un objeto estático o local de subprocesos produce una excepción

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.

4)

una función registrada con std::atexit o std::at_quick_exit produce una excepción

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.

5)

un noexcept especificación es violada (es definido por la implantación si alguna desenredo de pila que se hace en este caso)

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.

6)

un especificación de excepciones dinámicas es violada y el controlador predeterminado para std::unexpected ejecuta

Original:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

7)

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

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.

8)

std::nested_exception::rethrow_nested se llama para un objeto que no está sosteniendo una excepción capturada

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.

9)

se produce una excepción de la función inicial de std::thread

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.

10)

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.

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.

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.

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.

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.

Excepciones

Ver también