Find the element with the given key.
Synopses
Declared in <folly/AtomicHashMap.h>
Find the element with the given key.
template<
typename LookupKeyT = key_type,
typename LookupHashFcn = hasher,
typename LookupEqualFcn = key_equal>
iterator
find(LookupKeyT k);
Find the element with the given key.
template<
typename LookupKeyT = key_type,
typename LookupHashFcn = hasher,
typename LookupEqualFcn = key_equal>
const_iterator
find(LookupKeyT k) const;
Return Value
-
An iterator to the element if found, otherwise
end(). -
A const iterator to the element if found, otherwise
end().
Template Parameters
Name |
Description |
LookupKeyT |
The type of the lookup key. |
LookupHashFcn |
The hash functor for the lookup key. |
LookupEqualFcn |
The equality functor for the lookup key. |
Parameters
Name |
Description |
k |
The key to look up. |
Created with MrDocs