BloombergLP::bdlc::FlatHashMap::find

Return an iterator to the element with the specified key.

Synopses

Declared in <bdlc_flathashmap.h>

Return an iterator to the element with the specified key.

FlatHashMap<KEY, VALUE, HASH, EQUAL>::iterator
find(KEY const& key);
» more...

Return an iterator to the element with the specified key.

FlatHashMap<KEY, VALUE, HASH, EQUAL>::const_iterator
find(KEY const& key) const;
» more...

Return an iterator to the element with the specified key.

template<class LOOKUP_KEY>
iterator
find(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
         && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return an iterator to the element with the specified key.

template<class LOOKUP_KEY>
const_iterator
find(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
         && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return Value

iterator to the matching element, or end() if none

Parameters

NameDescription
keykey to look up