Title
Inconsistency between string::insert() and string::append()
Status
nad
Section
[string.insert] [string.append]
Submitter
Nico Josuttis

Created on 1998-09-29.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The LWG believes this stylistic inconsistency is not sufficiently serious to constitute a defect.

Date: 1998-09-29.00:00:00

Why does

  template<class InputIterator> 
       basic_string& append(InputIterator first, InputIterator last);

return a string, while

  template<class InputIterator> 
       void insert(iterator p, InputIterator first, InputIterator last);

returns nothing ?

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg202
1998-09-29 00:00:00admincreate