[#bsl-unordered_map-02b-equal_range-0c]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::equal&lowbar;range
:relfileprefix: ../../
:mrdocs:

Return a const iterator range of elements with the specified `key`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/pair-0b.adoc[pair&lt;const&lowbar;iterator, const&lowbar;iterator&gt;]
equal&lowbar;range(xref:bsl/unordered_map-02b/key_type.adoc[key&lowbar;type] const& key) const;
----

== Description

Return a pair of iterators providing non&hyphen;modifiable access to the sequence of `value&lowbar;type` objects in this unordered map having 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&period; If this unordered map contains no `value&lowbar;type` object having `key`, then the two returned iterators will have the same value, `end()`&period; Note that since an unordered map maintains unique keys, the range will contain at most one element&period;

== Return Value

pair of const iterators delimiting the equal&hyphen;key range

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key to look up
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
