Return a const iterator to the first element equivalent to key.

Synopsis

Declared in <bslstl_multiset.h>

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

Description

Return an iterator providing non‐modifiable access to the first value_type object that is equivalent to the specified key in ordered sequence maintained by this multiset, if such an object exists, and the past‐the‐end (end) iterator otherwise.

Note: implemented inline due to Sun CC compilation error.

Return Value

const iterator to a matching element, or end()

Parameters

Name

Description

key

transparent key value to look up

Created with MrDocs