std::allocator_arg 是std::allocator_arg_t 类型常量,用于在调用点消歧义具分配器对象,例如 std::tuple、 std::function、 std::promise 与std::packaged_task 的构造函数及成员函数的重载。 参阅allocator_arg_t (C++11) 标签类型,用于选择具分配器的构造函数重载 (类) uses_allocator (C++11) 检查...
std::allocator_arg 是std::allocator_arg_t 类型常量,用于在调用点消歧义具分配器对象,例如 std::tuple、 std::function、 std::promise 与std::packaged_task 的构造函数及成员函数的重载。 参阅 allocator_arg_t (C++11) 标签类型,用于选择具分配器的构造函数重载 (类) uses_allocator (C++11) 检查...
1)std::allocator_arg_tis an empty class type used to disambiguate the overloads of constructors and member functions of allocator-aware objects, includingstd::tuple,std::function,std::packaged_task,(until C++17)andstd::promise. 2)std::allocator_argis an instance of(1)that can be passed ...
struct allocator_arg_t { explicit allocator_arg_t() = default; }; (C++11 起) std::allocator_arg_t 是用于消歧义具分配器对象,包括 std::tuple 、 std::function、 std::packaged_task (C++17 前)与std::promise 的构造函数和成员函数的空类类型。 缺陷...