bsl::multimap::find

Return an iterator to the first element with key key, or end().

Synopsis

Declared in <bslstl_multimap.h>

template<class LOOKUP_KEY>
iterator
find(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Description

Return an iterator providing modifiable access to the first value_type object in this multimap whose key is equivalent to the specified key, if such an entry exists, and the past-the-end (end) iterator otherwise.

Note: implemented inline due to Sun CC compilation error.

Return Value

iterator to the matching element, or end()

Parameters

NameDescription
keykey value to look up