Return an iterator to the first element with key equivalent to key.

Synopsis

Declared in <bslstl_unorderedmultimap.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 providing modifiable access to the first value_type object in the sequence of all the value_type objects of this unordered multimap with a key equivalent to the specified key, if such entries exist, and the past‐the‐end (end) iterator otherwise. The behavior is undefined unless key is equivalent to the key of the elements of at most one equivalent‐key group in this unordered multimap.

Return Value

iterator to the element, or end() if not found

Parameters

Name

Description

key

transparent key value to look up

Created with MrDocs