◐ Shell
clean mode source ↗

std::unexpected - 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 unexpected();

(en desuso)

std::unexpected() es llamado por el C + + tiempo de ejecución cuando se viola un especificación de excepciones dinámicas: se produce una excepción de una función cuyo excepción especificación prohíbe las excepciones de este tipo .

Original:

std::unexpected() is called by the C++ runtime when a especificación de excepciones dinámicas is violated: an exception is thrown from a function whose exception specification forbids exceptions of this type.

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

std::unexpected() también se puede llamar directamente desde el programa .

Original:

std::unexpected() 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::unexpected std::unexpected_handler instalado actualmente. El defecto std::unexpected_handler llamadas std::terminate .

Original:

In either case, std::unexpected calls the currently installed std::unexpected_handler. The default std::unexpected_handler calls std::terminate.

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