◐ Shell
clean mode source ↗

std::exit - cppreference.com

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.

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.

  • destruidores de objetos com duração de armazenamento segmento local são chamados

    Original:

    The 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 chamados

    Original:

    destructors of objects with static storage duration are called

    The 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 é chamado

    Original:

    functions passed to std::atexit are called. If an exception tries to propagate out of any of the function, std::terminate is called

    The 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 fechada

    Original:

    all C streams are flushed and closed

    The 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 removidos

    Original:

    files created by std::tmpfile are removed

    The 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. Se exit_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. If exit_code is EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. If exit_code is 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:

The text has been machine-translated via Google Translate.
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.

Exemplo

Veja também

provoca finalização anormal do programa (sem limpeza)

Original:

causes abnormal program termination (without cleaning up)

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


(função) [edit]

registra uma função a ser chamada no momento da invocação

exit()

Original:

registers a function to be called on

exit()

invocation

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


(função) [edit]

provoca término normal do programa completamente sem limpeza

Original:

causes normal program termination without completely cleaning up

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


(função) [edit]