BloombergLP::bdlc::FlatHashMap::find

Return an iterator to the element with the specified key.

Synopsis

Declared in <bdlc_flathashmap.h>

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;

Description

Return an iterator referring to the modifiable element in this map having the key equivalent to the specified key, or end() if no such entry exists in this map.

Return Value

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

Parameters

NameDescription
keytransparent key to look up