bsl::unordered_map::equal_range

equal_range overloads

Synopses

Declared in <bslstl_unorderedmap.h>

Return an iterator range of elements with the specified key.

pair<iterator, iterator>
equal_range(key_type const& key);
» more...

Return a const iterator range of elements with the specified key.

pair<const_iterator, const_iterator>
equal_range(key_type const& key) const;
» more...

Return an iterator range of elements with an equivalent key.

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

Return a const iterator range of elements with an equivalent key.

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;
» more...

Return Value

  • pair of iterators delimiting the equal-key range
  • pair of const iterators delimiting the equal-key range

Parameters

NameDescription
keykey to look up