boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
96 stars 116 forks source link

flat_map should support same interface as std::map #241

Closed J-Richter closed 6 days ago

J-Richter commented 1 year ago

std::map has a transparent erase function. flat_map should support the same interface.

This means flat_map can be used with fewer allocations like so:

boost::container::flat_map<std::string,int,std::less<void>> v;
v.erase( "test"sv );

flat_map should also provide the insert_or_assign function.