absl::linked_hash_map::equal_range

Returns the range of elements matching the given key.

Synopses

Declared in <absl/container/linked_hash_map.h>

Returns the range of elements matching the given key.

template<class K = key_type>
std::pair<iterator, iterator>
equal_range(key_arg<K> const& key);
» more...

Returns the range of elements matching the given key.

template<class K = key_type>
std::pair<const_iterator, const_iterator>
equal_range(key_arg<K> const& key) const;
» more...

Return Value

  • A pair of iterators bounding the matching elements.
  • A pair of const iterators bounding the matching elements.

Parameters

NameDescription
keyThe key to look up.