C++ 参考手册

定义于头文件 <memory>
struct allocator_arg_t {};
(C++11 èµ·)
(C++17 前)
struct allocator_arg_t { explicit allocator_arg_t() = default; };
(C++17 èµ·)


std::allocator_arg_t 是用于消歧义具分配器对象,包含 std::tuple 、 std::function 、 std::promise 和 std::packaged_task 的构造函数和成员函数的空类类型。

参阅

用于选择具分配器的构造函数的 std::allocator_arg_t 对象
(常量)
检查指定的类型是否支持使用分配器的构造
(类模板)