std::allocator_arg
STD::分配器[医]阿格
Defined in header | | |
---|---|---|
constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t( | | (since C++11) (until C++17) |
inline constexpr std::allocator_arg_t allocator_arg = std::allocator_arg_t( | | (since C++17) |
std::allocator_arg
是类型的常数。std::allocator_arg_t
用于在调用站点消除对分配器敏感对象的构造函数和成员函数的重载,例如std::tuple
,,,std::function
,,,std::promise
,和std::packaged_task
...
另见
allocator_arg_t (C++11) | tag type used to select allocator-aware constructor overloads (class) |
---|---|
uses_allocator (C++11) | checks if the specified type supports uses-allocator construction (class template) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。