std::unexpected
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <exception>
|
||
[[noreturn]] void unexpected(); |
(obsoleta) | |
std::unexpected()
é chamado pelo tempo de execução C + + quando um especificação excepção dinâmico é violada: uma exceção é lançada a partir de uma função cuja especificação exceção proíbe excepções deste tipo.Original:
std::unexpected()
is called by the C++ runtime when a especificação excepção dinâmico 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.
You can help to correct and verify the translation. Click here for instructions.
std::unexpected()
também pode ser chamado diretamente do 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.
You can help to correct and verify the translation. Click here for instructions.
Em qualquer caso,
std::unexpected
chama o std::unexpected_handler instalado atualmente. O padrão std::unexpected_handler chamadas 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.
You can help to correct and verify the translation. Click here for instructions.
Índice |
[editar] Parâmetros
(Nenhum)
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
(Nenhum)
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] Exceções
[editar] Veja também
(obsoleta) |
o tipo da função de chamada por std::unexpected Original: the type of the function 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. (typedef) |