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

450. set::find is inconsistent with associative container requirements

Section: 21.4.6 [set] Status: Dup Submitter: Bill Plauger Opened: 2004-01-30 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [set].

View all issues with Dup status.

Duplicate of: 214


map/multimap have:

    iterator find(const key_type& x) const;
    const_iterator find(const key_type& x) const;

which is consistent with the table of associative container requirements. But set/multiset have:

    iterator find(const key_type&) const;

set/multiset should look like map/multimap, and honor the requirements table, in this regard.

Proposed resolution: