used newly added boost::concurrent_flat_map::contains

This commit is contained in:
joaquintides
2023-05-06 09:34:33 +02:00
parent 5c35bc1401
commit ea06bede09

View File

@@ -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 )