std::exit
Материал из 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. |
| Заголовочный файл <cstdlib>
|
||
| [[noreturn]] void exit( int exit_code ); |
(начиная с C++11) | |
| void exit( int exit_code ); |
(до C++11) | |
Причины нормальное завершение программы происходит.
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.
Несколько шагов очистки выполняется
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.
- деструкторы объектов с резьбой местных длительность хранения называютсяOriginal:destructors of objects with thread local длительность хранения are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - деструкторы объектов со статическим срок хранения называютсяOriginal: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. - Функции передается std::atexit называются. Если исключение пытается распространяться из любой функции, std::terminate называетсяOriginal: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. - Все C потоков покраснел и закрытыOriginal: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. - файлы, созданные std::tmpfile удаляютсяOriginal: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. - управление возвращается принимающей среды. Если
exit_codeявляется EXIT_SUCCESS, определяется реализацией статуса, с указанием успешного завершения возвращается. Еслиexit_codeявляется EXIT_FAILURE, определяется реализацией статуса, указывающий неудачного окончания возвращается. В других случаях реализация определенного статуса возвращается значение.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.
Деструкторы переменных с автоматическим длительности хранения не называют.
Original:
Destructors of variables with automatic длительности хранения 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.
Содержание |
[править] Параметры
| exit_code | - | статус завершения программы
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. |
[править] Возвращаемое значение
(Нет)
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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| вызывает аварийное завершение программы (без очистки) 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. (функция) | |
| регистрирует функцию, которая вызывается при вызове 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. (функция) | |
| (C++11) |
вызывает нормальное завершение программы без полной очистки 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. (функция) |
| C документация для exit
| |