◐ Shell
clean mode source ↗

std::exit - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<cstdlib>

[[noreturn]] void exit( int exit_code );

(dal C++11)

             void exit( int exit_code );

(fino al c++11)

Provoca terminazione normale programma a verificarsi.

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.

Diverse fasi di pulizia vengono eseguite:

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.

  • distruttori di oggetti con stoccaggio durata locale di thread sono chiamati

    Original:

    destructors of objects with thread local stoccaggio durata are called

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

  • distruttori di oggetti con durata di conservazione statica sono chiamati

    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.

  • funzioni passato a std::atexit sono chiamati. Se un'eccezione tenta di propagare su qualsiasi della funzione, std::terminate viene chiamato

    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.

  • tutti i flussi di C sono lavata e chiuse

    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.

  • i file creati da std::tmpfile vengono rimossi

    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.

  • il controllo viene restituito l'ambiente host. Se exit_code è EXIT_SUCCESS, l'attuazione di un determinato status, che indica terminato con successo viene restituito. Se exit_code è EXIT_FAILURE, l'attuazione di un determinato status, che indica terminazione successo viene restituito. In altri casi l'attuazione definito valore di stato viene restituito.

    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.

Distruttori di variabili con stoccaggio durate automatica non si chiamano.

Original:

Destructors of variables with automatic stoccaggio durate 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.

Parametri

exit_code -

uscita di stato del programma

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.

Valore di ritorno

(Nessuno)

Original:

(none)

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

Esempio

Vedi anche

causa chiusura anomala del programma (senza pulizia)

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.


(funzione) [modifica]

registra una funzione di essere chiamato invocazione

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.


(funzione) [modifica]

causa terminazione normale programma senza completamente pulizia

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.


(funzione) [modifica]