std::terminate
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 terminate(); |
||
std::terminate()
é chamado pelo tempo de execução C + + manipulação de exceção quando falhar por qualquer das seguintes razões: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.
uma exceção é lançada e não pegou (que é definida pela implementação se qualquer pilha desenrolar é feito, neste 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.
uma exceção é lançada durante o tratamento de exceções (por exemplo, a partir de um processo de destruição de um objeto local, ou a partir de uma função que tinha de ser chamado durante o tratamento de exceção)
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.
o construtor ou o destruidor de um objeto estático ou segmento local gera uma exceção
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.
uma função registrada std::atexit ou std::at_quick_exit lança uma exceção
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.
um noexcept especificação é violada (que é definida pela implementação se qualquer pilha desenrolar é feito, neste caso)
6) Original:
a noexcept especificação 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.
um especificação excepção dinâmico é violada eo manipulador padrão para std::unexpected é executado
7) Original:
a especificação excepção dinâmico 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.
um manipulador de não-padrão para std::unexpected lança uma exceção que viola a especificação de exceção previamente violado dinâmico, se a especificação não inclui std::bad_exception
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 é chamado para um objeto que não está segurando uma exceção capturado
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.
uma exceção é lançada a partir da função 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.
um std::thread acopláveis é destruída ou atribuído
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()
também pode ser chamado diretamente do 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.
Em qualquer caso, a chama
std::terminate
std::terminate_handler actualmente instalado. O padrão std::terminate_handler chamadas 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.
Í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
o tipo da função de chamada por std::terminate Original: the type of the function called by std::terminate The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |