std::terminate_handler
| Defined in header <exception> |  |  | 
|---|---|---|
| typedef void (*terminate_handler)(); |  |  | 
std::terminate_handler函数指针类型%28指向函数,它不带参数并返回void%29,函数将安装并查询该函数。std::set_terminate和std::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) | 
 © cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

