Modify

Ticket #11992 (closed Feature Requests: fixed)

Opened 13 months ago

Last modified 13 months ago

Add an overload of insert_check taking a key_type

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

Description

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

Change History

comment:1 Changed 13 months ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

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

 https://github.com/boostorg/intrusive/commit/4cf38987a88e1bb1157f1b8957bc0fc167b576e4

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.