Return a const iterator pair covering elements equivalent to key.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

template<class LOOKUP_KEY>
pair<const_iterator, const_iterator>
equal_range(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
        && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;

Description

Return a pair of iterators providing non‐modifiable access to the sequence of value_type objects in this unordered multiset equivalent to the specified key, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence. If this unordered multiset contains no value_type objects equivalent to the key, then the two returned iterators will have the same value. The behavior is undefined unless key is equivalent to the elements of at most one equivalent‐key group in this unordered multiset.

Return Value

pair of const iterators delimiting the equal‐key range

Parameters

Name

Description

key

key value to look up

Created with MrDocs