std::allocator_arg_t_C++中文网
| 定义于头文件 |
||
| 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 的构造函数和成员函数的空类类型。
参阅
| (C++11) |
用于选择具分配器的构造函数的 std::allocator_arg_t 对象 (常量) |
| (C++11) |
检查指定的类型是否支持使用分配器的构造 (类模板) |