std::exit
De cppreference.com.
| Défini dans l'entête <cstdlib>
|
||
| [[noreturn]] void exit( int exit_code ); |
(depuis C++11) | |
| void exit( int exit_code ); |
(jusqu'à C++11) | |
Provoque l'arrêt du programme normal de se produire .
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.
Plusieurs étapes de nettoyage sont effectuées:
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.
- destructeurs d'objets avec durée de stockage local des threads sont appelésOriginal:destructors of objects with thread local durée de stockage are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - destructeurs d'objets dont la durée de stockage statique sont appelésOriginal: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. - responsabilités ont été transférées à std::atexit sont appelés. Si une exception tente de se propager sur toute de la fonction, std::terminate est appeléeOriginal: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. - tous les flux de C sont vidés et fermésOriginal: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. - fichiers créés par std::tmpfile sont supprimésOriginal: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. - le contrôle est renvoyé à l'environnement hôte. Si
exit_codeest EXIT_SUCCESS, une mise en œuvre définies par le statut, indiquant la fin réussie est retourné. Siexit_codeest EXIT_FAILURE, une mise en œuvre définies par le statut, en indiquant la résiliation échec est retourné. Dans d'autres cas définis par l'implémentation valeur d'état est retourné .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.
Les destructeurs des variables avec stockage durées automatique ne sont pas appelés .
Original:
Destructors of variables with automatic stockage duré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.
Sommaire |
[modifier] Paramètres
| exit_code | - | quitter l'état du programme
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. |
[modifier] Retourne la valeur
(Aucun)
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.
[modifier] Exemple
| This section is incomplete Reason: no example |
[modifier] Voir aussi
| provoque la terminaison anormale du programme (sans nettoyage) 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. (fonction) | |
| enregistre une fonction qui sera appelée lors de son invocation 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. (fonction) | |
| (C++11) |
provoque l'arrêt du programme normal sans complètement nettoyage 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. (fonction) |
| C documentation for exit
| |