std::allocator_arg

< cpp‎ | memory
定义于头文件 <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 的构造函数及成员函数的重载。

参阅

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