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

337. replace_copy_if's template parameter should be InputIterator

Section: 23.6.5 [alg.replace] Status: CD1 Submitter: Detlef Vollmann Opened: 2001-09-07 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [alg.replace].

View all issues with CD1 status.


From c++std-edit-876:

In section 23.6.5 [alg.replace] before p4: The name of the first parameter of template replace_copy_if should be "InputIterator" instead of "Iterator". According to [type.descriptions] p1 the parameter name conveys real normative meaning.

Proposed resolution:

Change Iterator to InputIterator.