97. Insert inconsistent definition

Section: 24 [containers] Status: NAD Submitter: AFNOR Opened: 1998-10-07 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View other active issues in [containers].

View all other issues in [containers].

View all issues with NAD status.


insert(iterator, const value_type&) is defined both on sequences and on set, with unrelated semantics: insert here (in sequences), and insert with hint (in associative containers). They should have different names (B.S. says: do not abuse overloading).


This is not a defect in the Standard. It is a genetic misfortune of the design, for better or for worse.