std::exit
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <cstdlib>
|
||
[[noreturn]] void exit( int exit_code ); |
(desde C++11) | |
void exit( int exit_code ); |
(até C++11) | |
Causas término do programa normal ocorrer.
Original:
Causes normal program termination to occur.
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.
Várias etapas de limpeza são realizadas:
Original:
Several cleanup steps are performed:
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.
- destruidores de objetos com duração de armazenamento segmento local são chamadosOriginal:destructors of objects with thread local duração de armazenamento are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - destruidores de objetos com duração de armazenamento estático são chamadosOriginal:destructors of objects with static storage duration are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - funções passado para std::atexit são chamados. Se uma exceção tenta propagar fora de qualquer uma das funções, std::terminate é chamadoOriginal:functions passed to std::atexit are called. If an exception tries to propagate out of any of the function, std::terminate is calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - todos os fluxos de C são liberadas e fechadaOriginal:all C streams are flushed and closedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ficheiros criados por std::tmpfile são removidosOriginal:files created by std::tmpfile are removedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - o controlo retorna para o ambiente do hospedeiro. Se
exit_codeé EXIT_SUCCESS, uma aplicação definida de status, indicando termo bem sucedido é devolvido. Seexit_codeé EXIT_FAILURE, uma aplicação definida de status, indicando rescisão sucesso é retornado. Em outros casos, definida pela implementação valor de status é retornado.Original:control is returned to the host environment. Ifexit_codeis EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. Ifexit_codeis EXIT_FAILURE, an implementation-defined status, indicating unsuccessful termination is returned. In other cases implementation-defined status value is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Destruidores de variáveis com armazenamento durações automático não são chamados.
Original:
Destructors of variables with automatic armazenamento durações are not called.
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.
Parâmetros
| exit_code | - | estado de saída do programa
Original: exit status of the program 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
(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.
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
