Espacios de nombres
Variantes
Acciones

std::unexpected

De cppreference.com
< cpp‎ | error
 
 
Biblioteca de servicios
 
Control de errores
Control de excepciones
Fallas del control de excepciones
unexpected
(hasta C++17)
(hasta C++17)
(C++11)(hasta C++17)
(hasta C++17)
Códigos de error
Códigos de error
 
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.

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.

[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.

[editar] Excepciones

Especificación noexcept:  
noexcept
  (desde C++11)

[editar] Ver también

El tipo de la función llamada por std::unexpected.
(typedef) [editar]