std::atexit — cppreference.com
De cppreference.com
<tbody> </tbody>
| Déclaré dans l'en-tête <cstdlib> |
||
|
|
||
Enregistre la fonction pointée par func d'être appelé à la cessation normale du programme (via exit() ou au retour d'main()) .
Original:
Registers the function pointed to by func to be called on normal program termination (via exit() or returning from main()).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Appel de la fonction de plusieurs threads n'induit pas une race de données. La mise en œuvre doit appuyer l'homologation des fonctions 32 au moins .
Original:
Calling the function from several threads does not induce a data race. The implementation shall support the registration of at least 32 functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| func | - | pointeur vers une fonction qui sera appelée à la fin du programme normal Original: pointer to a function to be called on normal program termination The text has been machine-translated via Google Translate. |
Retourne la valeur
0 si l'inscription réussit, valeur différente de zéro autrement .
Original:
0 if the registration succeeds, nonzero value otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.