提交 d865aeba 编写于 作者: A Alexander Kuzmenkov

Review fixes.

上级 a8644478
......@@ -330,10 +330,13 @@ public:
struct FindCallable
{
template <typename Map, typename KeyHolder>
LookupResult ALWAYS_INLINE operator()(Map & map, KeyHolder && key_holder, size_t hash)
// find() doesn't need any key memory management, so we don't work with
// any key holders here, only with normal keys. The key type is still
// different for every subtable, this is why it is a template parameter.
template <typename Submap, typename SubmapKey>
LookupResult ALWAYS_INLINE operator()(Submap & map, const SubmapKey & key, size_t hash)
{
return lookupResultGetMapped(map.find(keyHolderGetKey(key_holder), hash));
return lookupResultGetMapped(map.find(key, hash));
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册