std::allocator_arg_t

Defined in header <memory>
1
struct allocator_arg_t {};
(since C++11)

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

an object of type std::allocator_arg_t used to select allocator-aware constructors
(constant)
checks if the specified type supports uses-allocator construction
(class template)
doc_CPP
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.