#11992 closed Feature Requests (fixed)

Add an overload of insert_check taking a key_type

Reported by: fdegros@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:


The different flavors of intrusive set don't seem to have an insert_check method that takes a key_type directly and uses the container's key comparator and/or hasher.

It would be convenient to add this method:

std::pair<iterator, bool> 
insert_check(const key_type&, insert_commit_data&);

That would also be consistent with the way the methods find, lower_bound, upper_bound, equal_range and erase work.

Attachments (0)

Change History (1)

comment:1 Changed 21 months ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Thanks for the report. You are right they were missing. Fixed in:

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.