C++ 参考手册
- C++11
 - C++14
 - C++17
 - C++20
 - C++ 编译器支持情况表
 - 独立与宿主实现
 - C++ 语言
 - C++ 关键词
 - 预处理器
 - C++ 标准库头文件
 - 具名要求
 - 功能特性测试 (C++20)
 - 工具库
 - 程序支持工具
 - std::longjmp
 - std::_Exit
 - EXIT_SUCCESS, EXIT_FAILURE
 - std::getenv
 - std::signal
 - std::sig_atomic_t
 - SIG_DFL, SIG_IGN
 - std::abort
 - std::atexit
 - std::exit
 - std::at_quick_exit
 - std::quick_exit
 - setjmp
 - std::system
 - std::raise
 - SIG_ERR
 - SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE
 - std::jmp_buf
 - std::apply
 - 库特性测试宏 (C++20)
 - std::initializer_list
 - 函数对象
 - std::hash
 - std::pair
 - std::tuple
 - std::optional
 - std::any
 - std::variant
 - 格式化库 (C++20)
 - std::integer_sequence
 - std::exchange
 - std::make_from_tuple
 - std::launder
 - std::to_chars
 - std::from_chars
 - std::as_const
 - std::source_location
 - 变参数函数
 - std::bitset
 - std::cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal, cmp_greater_equal
 - std::in_range
 - std::declval
 - std::forward
 - std::move
 - std::move_if_noexcept
 - std::chars_format
 - std::piecewise_construct_t
 - std::piecewise_construct
 - std::in_place, std::in_place_type, std::in_place_index, std::in_place_t, std::in_place_type_t, std::in_place_index_t
 - 注释
 - 类型支持(基本类型、RTTI、类型特性)
 - 概念库 (C++20)
 - 错误处理
 - 动态内存管理
 - 日期和时间工具
 - 字符串库
 - 容器库
 - 迭代器库
 - 范围库 (C++20)
 - 算法库
 - 数值库
 - 输入/输出库
 - 文件系统库
 - 本地化库
 - 正则表达式库
 - 原子操作库
 - 线程支持库
 - 实验性 C++ 特性
 - 有用的资源
 - 索引
 - std 符号索引
 - 协程支持 (C++20)
 - C++ 关键词
 
std::at_quick_exit
|   定义于头文件  <cstdlib>
  | 
||
|   int at_quick_exit( /*atexit-handler*/* func ) noexcept; int at_quick_exit( /*c-atexit-handler*/* func ) noexcept;  | 
(1) | (C++11 起) | 
|   extern "C++" using /*atexit-handler*/ = void(); // 仅为说明 extern "C" using /*c-atexit-handler*/ = void(); // 仅为说明  | 
(2) | |
注册 func 所指向的函数,使得在快速程序终止时调用它(通过 std::quick_exit )。
从多个线程调用此函数不引起数据竞争。实现要支持至少注册 32 个函数。
正常程序终止时不调用注册的函数。若需要在该情况下调用函数,则必须使用 std::atexit 。
参数
| func | - | 指向要在快速程序终止时调用的函数的指针 | 
返回值
若注册成功则为 0 ,否则为非零值。
注意
二个重载有别,因为参数 func 类型有别(语言链接是其类型的一部分)。
示例
| 本节未完成 原因:暂无示例  | 
参阅
|   导致非正常的程序终止(不进行清理)  (函数)  | |
|   导致正常的程序终止并进行清理  (函数)  | |
|   注册将于调用 std::exit() 时被调用的函数  (函数)  | |
|    (C++11)  | 
  导致快速程序终止,不进行完全的清理  (函数)  |