Allocator-aware container and allocator_arg_t

27 views
Skip to first unread message

Bjorn Reese

unread,
Oct 9, 2017, 11:33:55 AM10/9/17
to std-dis...@isocpp.org
A container must provide constructors that takes an allocator as
argument to meet the allocator-aware container requirements.

There is also the std::allocator_arg_t tag that can be used to
disambiguate constructors with and without the allocator argument.

If a container cannot provide the T(Alloc) constructor directly due
to ambiguity, but instead provides the T(allocator_arg_t, Alloc)
constructor, does it meet the allocator-aware container requirements?
Reply all
Reply to author
Forward
0 new messages