std::abort
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <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.
目录 |
[编辑] 参数
(无)
[编辑] 返回值
(无)
[编辑] 例外
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
清理,会导致正常的程序终止 原文: causes normal program termination with cleaning up (函数) | |
(函数) | |
(C++11) |
没有完全清理,会导致正常的程序终止 原文: causes normal program termination without completely cleaning up (函数) |
C documentation for abort
|