std::exit
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <cstdlib>
|
||
[[noreturn]] void exit( int exit_code ); |
(desde C++11) | |
void exit( int exit_code ); |
(hasta C++11) | |
Causas de terminación normal del programa de ocurrir .
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.
Varios pasos de limpieza se llevan a cabo:
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.
- destructores de objetos con duración de almacenamiento local de subprocesos son llamadosOriginal:destructors of objects with thread local duración de almacenamiento are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - destructores de los objetos con una duración de almacenamiento estático se llamanOriginal: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. - funciones pasan a std::atexit son llamados. Si una excepción intenta propagarse fuera de cualquiera de la función, std::terminate se llamaOriginal: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 los flujos de C se sonrojó y se cierraOriginal: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. - archivos creados por std::tmpfile se eliminanOriginal: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. - el control se devuelve al medio ambiente de acogida. Si
exit_code
es EXIT_SUCCESS, una aplicación definida por el estado, lo que indica la terminación con éxito se devuelve. Siexit_code
es EXIT_FAILURE, una aplicación definida por el estado, lo que indica la terminación sin éxito se devuelve. En otros casos la aplicación definida por el valor de estado se devuelve .Original:control is returned to the host environment. Ifexit_code
is EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. Ifexit_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.
Los destructores de las variables con almacenamiento duración automática no se llaman .
Original:
Destructors of variables with automatic almacenamiento duración 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.
Contenido |
[editar] Parámetros
exit_code | - | salir del estado del 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. |
[editar] Valor de retorno
(Ninguno)
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.
[editar] Ejemplo
This section is incomplete Reason: no example |
[editar] Ver también
produce la terminación anormal del programa (sin limpiar) 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. (función) | |
registra una función para ser llamada en exit() invocación 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. (función) | |
(C++11) |
produce la terminación normal del programa sin limpiar completamente 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. (función) |
C documentation for exit
|