首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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快速文档[医]出口

代码语言:txt
复制
 © cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券