This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++11 status.
forwardlist missing allocator constructorsSection: 23.3.7[forward.list]Status:C++11Submitter: Daniel KrüglerOpened: 2009-12-12Last modified: 2023-02-07
Priority:Not Prioritized
View all otherissues in [forward.list].
View all issues withC++11 status.
Discussion:
I found that forward_list has only
forward_list(const forward_list<T,Allocator>& x);forward_list(forward_list<T,Allocator>&& x);
but misses
forward_list(const forward_list& x, const Allocator&);forward_list(forward_list&& x, const Allocator&);
Note to other reviewers: I also checked the container adaptors for similarinconsistencies, but as far as I can see these are already handled by thecurrent active issues1194(i) and1199(i).
[2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.]
Proposed resolution:
In [forwardlist]/3, class template forward_list synopsis change asindicated:
forward_list(const forward_list<T,Allocator>& x);forward_list(forward_list<T,Allocator>&& x);forward_list(const forward_list&, const Allocator&);forward_list(forward_list&&, const Allocator&);