在线文档教程
C++
应用 | Utilities

std::quick_exit

STD:快[医]出口

Defined in header
[noreturn] void quick_exit( int exit_code (since C++11)

导致正常程序终止而不完全清除资源。

传递给std::at_quick_exit都是按注册的相反顺序调用的。如果异常试图从任何函数中传播出去,std::terminate叫做。调用注册函数后,调用std::_Exit(exit_code)...

传递给std::atexit都不叫。

参数

exit_code-exit status of the program

返回值

%280%29

例外

noexcept规格:

noexcept

另见

abortcauses abnormal program termination (without cleaning up) (function)
atexitregisters a function to be called on std::exit() invocation (function)
at_quick_exit (C++11)registers a function to be called on quick_exit invocation (function)

c快速文档[医]出口

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/实用程序/节目/快速[医]出口