mirror of
https://github.com/boostorg/boost_unordered_benchmarks.git
synced 2026-01-19 04:02:13 +00:00
used newly added boost::concurrent_flat_map::contains
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -232,7 +232,7 @@ inline void increment_element( concurrent_flat_map_type& map, std::string_view k
|
||||
|
||||
inline bool contains_element( concurrent_flat_map_type const& map, std::string_view key )
|
||||
{
|
||||
return (bool) map.cvisit( key, [](const auto&){} );
|
||||
return map.contains( key );
|
||||
}
|
||||
|
||||
inline void increment_element( cuckoo_map_type& map, std::string_view key )
|
||||
|
||||
Reference in New Issue
Block a user