std::quick_exit
Defined in header <cstdlib> | | |
|---|---|---|
[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。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

