1276. forwardlist missing allocator constructors

Section: 26.3.9 [forwardlist] Status: C++11 Submitter: Daniel Krügler Opened: 2009-12-12 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [forwardlist].

View all issues with C++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 similar inconsistencies, but as far as I can see these are already handled by the current active issues 1194 and 1199.

[ 2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Proposed resolution:

In 26.3.9 [forwardlist]/3, class template forward_list synopsis change as indicated:

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&);