heterogeneous lookup for ConcurrentHashMap
Summary: This diff adds heterogeneous lookup handling for `ConcurrentHashMap` (`find()` and `at()`), which allows lookups on keys that the hasher and key equal functors accept but are not exactly the same as the `KeyType` of the map. Common usage of the feature include looking up with a `std::string_view` key in a `map<string, X>`, thereby avoiding creating an unnecessary temporary string object. Reviewed By: yfeldblum Differential Revision: D23279680 fbshipit-source-id: 0537d23dd6b464cfea7a5b347ecbad9a5ec5bde4
Showing
Please register or sign in to comment