Opened 6 years ago

Closed 5 years ago

#12633 closed Feature Requests (fixed)

boost::unordered_map try_emplace

Reported by: dkabrane@… Owned by: Daniel James
Milestone: Boost 1.64.0 Component: unordered
Version: Boost 1.60.0 Severity: Optimization
Keywords: try_emplace unordered Cc:

Description

Is there something planned to implement C++17 try_emplace function in unordered_map (and other unordered associative containers) ?

Change History (5)

comment:1 by Daniel James, 6 years ago

I'm working on it, although only unordered_map has try_emplace. It might be in 1.64.0.

comment:2 by dkabrane@…, 6 years ago

You're right, it's only for unordered_map, my bad I thought it was common to every associative container. I'm eager to test it.

comment:3 by anonymous, 6 years ago

actually boost::container::map does have try_emplace so it will be great to have it in boost::unordered_map as well.

comment:4 by anonymous, 6 years ago

Milestone: To Be DeterminedBoost 1.64.0

comment:5 by Daniel James, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.