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

757. Typo in the synopsis of vector

Section: 24.3.11 [vector] Status: NAD Editorial Submitter: Paolo Carlini Opened: 2007-11-04 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [vector].

View all issues with NAD Editorial status.

Discussion:

In the synopsis 24.3.11 [vector], there is the signature:

void insert(const_iterator position, size_type n, T&& x);

instead of:

iterator insert(const_iterator position, T&& x);

24.3.11.5 [vector.modifiers] is fine.

Proposed resolution:

Change the synopsis in 24.3.11 [vector]:

iterator insert(const_iterator position, const T& x); 
iterator insert(const_iterator position, T&& x);
void     insert(const_iterator position, size_type n, const T& x); 
void     insert(const_iterator position, size_type n, T&& x);