BloombergLP::bdlc::FlatHashMap::equal_range

equal_range overloads

Synopses

Declared in <bdlc_flathashmap.h>

Return the iterator range of elements equal to key.

bsl::pair<FlatHashMap<KEY, VALUE, HASH, EQUAL>::iterator, FlatHashMap<KEY, VALUE, HASH, EQUAL>::iterator>
equal_range(KEY const& key);
» more...

Return the const iterator range of elements equal to key.

bsl::pair<FlatHashMap<KEY, VALUE, HASH, EQUAL>::const_iterator, FlatHashMap<KEY, VALUE, HASH, EQUAL>::const_iterator>
equal_range(KEY const& key) const;
» more...

Return the iterator range of elements equal to key.

template<class LOOKUP_KEY>
bsl::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 the const iterator range of elements equal to key.

template<class LOOKUP_KEY>
bsl::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 range
  • pair of const iterators delimiting the equal range

Parameters

NameDescription
keykey to find