std::get_terminate

定义于头文件 <exception>
std::terminate_handler get_terminate() noexcept;
(C++11 起)

返回当前安装的 std::terminate_handler ,它可以是空指针。

此函数是线程安全的。先前对 std::set_terminate 的调用同步于(见 std::memory_order )此函数。

(C++11 起)

参数

(无)

返回值

当前安装的 std::terminate_handler.

参阅

std::terminate 所调用的函数类型
(typedef)
更改将被 std::terminate 调用的函数
(函数)

版本历史

  • (当前 | 先前 2017年5月18日 (四) 03:16Fruderica讨论 | 贡献. . (697字节) (-238). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:03P12bot讨论 | 贡献 . . (935字节) (-80). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:48P12bot讨论 | 贡献 . . (1,015字节) (+249). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 11:36P12讨论 | 贡献 . . (766字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 07:00TranslationBot讨论 | 贡献. . (766字节) (-38). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 14:25P12讨论 | 贡献 . . (804字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 13:00TranslationBot讨论 | 贡献. . (804字节) (+804). . (Translated from the English version using Google Translate)