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

std::terminate_handler

Defined in header <exception>

?

?

typedef void (*terminate_handler)();

?

?

std::terminate_handler函数指针类型%28指向函数,它不带参数并返回void%29,函数将安装并查询该函数。std::set_terminatestd::get_terminate并被std::terminate...

C++实现提供了一个默认的std::terminate_handler函数,它调用std::abort()。如果空指针值安装为%28,则使用std::set_terminate%29,则实现可以还原默认处理程序。

另见

terminate

function called when exception handling fails (function)

set_terminate

changes the function to be called by std::terminate (function)

get_terminate (C++11)

obtains the current terminate_handler (function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com