This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.

### 1276. `forwardlist` missing allocator constructors

Section: 99 [forwardlist] Status: C++11 Submitter: Daniel Krügler Opened: 2009-12-12 Last modified: 2016-01-28

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