std::allocator_arg

来自cppreference.com
< cpp‎ | memory
 
 
工具库
通用工具
格式化库 (C++20)
(C++11)
关系运算符 (C++20 中弃用)
整数比较函数
(C++20)(C++20)(C++20)
(C++20)
swap 与类型运算
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
常用词汇类型
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)

初等字符串转换
(C++17)
(C++17)
栈踪
 
动态内存管理
智能指针
(C++11)
(C++11)
(C++11)
(C++17 前)
(C++11)
(C++23)
分配器
allocator_arg
(C++11)
内存资源
未初始化存储
未初始化内存算法
受约束的未初始化内存算法
垃圾收集支持
(C++11)(C++23 前)
(C++11)(C++23 前)
(C++11)(C++23 前)
(C++11)(C++23 前)
(C++11)(C++23 前)
(C++11)(C++23 前)
杂项
(C++20)
(C++11)
(C++11)
C 库
低层内存管理
 
定义于头文件 <memory>
constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t();
(C++11 起)
(C++17 前)
inline constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t();
(C++17 起)

std::allocator_argstd::allocator_arg_t 类型常量,用于在调用点消歧义具分配器对象,例如 std::tuplestd::functionstd::promisestd::packaged_task 的构造函数及成员函数的重载。

参阅

标签类型,用于选择具分配器的构造函数重载
(类)
检查指定的类型是否支持使用分配器的构造
(类模板)