Пространства имён
Варианты
Действия

std::exit

Материал из cppreference.com

 
 
 
Коммунальные услуги Программа поддержки
Программа прекращения
Original:
Program termination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
abort
exit
quick_exit(C++11)
_Exit(C++11)
Взаимодействие с окружающей средой
Original:
Communicating with the environment
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Сигналы
Original:
Signals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Сигнал типа
Original:
Signal types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
Нелокальные переходы
Original:
Non-local jumps
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
setjmp
longjmp
Типы
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
jmp_buf
 
Заголовочный файл <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.
Несколько шагов очистки выполняется
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.
  • деструкторы объектов с резьбой местных длительность хранения называются
    Original:
    destructors of objects with thread local длительность хранения are called
    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 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.
  • Функции передается 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 called
    The 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 closed
    The 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 removed
    The 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. 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.
Деструкторы переменных с автоматическим длительности хранения не называют.
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.

Содержание

[править] Параметры

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.

[править] Пример

[править] См. также

вызывает аварийное завершение программы (без очистки)
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.

(функция) [edit]
регистрирует функцию, которая вызывается при вызове 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.

(функция) [edit]
вызывает нормальное завершение программы без полной очистки
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.

(функция) [edit]