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
例
另见
abort | causes abnormal program termination (without cleaning up) (function) |
---|---|
atexit | registers 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。