Title
set::find is inconsistent with associative container requirements
Status
dup
Section
[set]
Submitter
Bill Plauger

Created on 2004-01-30.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Duplicate: 214

Date: 2004-01-30.00:00:00

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.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2675
2004-01-30 00:00:00admincreate