在线文档教程
C++
应用 | Utilities

std::allocator_arg_t

STD::分配器[医]阿格[医]T型

Defined in header
struct allocator_arg_t {};(since C++11) (until C++17)
struct allocator_arg_t { explicit allocator_arg_t() = default; };(since C++17)

std::allocator_arg_t是一种空类类型,用于消除对分配器对象的构造函数和成员函数的重载的歧义,包括std::tuple,,,std::function,,,std::promise,和std::packaged_task...

另见

allocator_arg (C++11)an object of type std::allocator_arg_t used to select allocator-aware constructors (constant)
uses_allocator (C++11)checks if the specified type supports uses-allocator construction (class template)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/Memory/allocator[医]阿格[医]T型