# std::allocator_arg_t

From cppreference.com
< cpp‎ | memory

Defined in header `<memory>` |  |
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` is an empty class type used to disambiguate the overloads of constructors and member functions of allocator-aware objects, including std::tuple, std::function, std::promise, and std::packaged_task.

### See also

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)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/memory/allocator_arg_t&oldid=88367"