std::abort

来自cppreference.com
< cpp‎ | utility‎ | program

定义于头文件 <cstdlib>
[[noreturn]] void abort();
(C++11 起)
             void abort();
(C++11 前)

Causes abnormal program termination unless SIGABRT is being caught by a signal handler passed to signal and the handler does not return.

Destructors of variables with automatic, thread local and static 存储的持续时间 are not called. Functions, passed to atexit() are also not called. Whether open resources such as files are closed is implementation defined. Implementation defined status is returned to the host environment that indicates unsuccessful execution.

目录

[编辑] 参数

(无)
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 返回值

(无)
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 例外

noexcept 规定:  
noexcept
  

[编辑] 示例

[编辑] 另请参阅

导致正常程序终止并清理
(函数) [编辑]
注册将在调用 std::exit() 时调用的函数
(函数) [编辑]
导致快速程序终止,不完全清理
(函数) [编辑]
abortC 文档