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

Section: 26.4.6 [set] Status: Dup Submitter: Bill Plauger Opened: 2004-01-30 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [set].

View all issues with Dup status.

Duplicate of: 214

Discussion:

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:

Rationale: