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_arg 是 std::allocator_arg_t 类型常量,用于在调用点消歧义具分配器对象,例如 std::tuple 、 std::function 、 std::promise 与 std::packaged_task 的构造函数及成员函数的重载。

参阅

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