[#BloombergLP-bdlc-FlatHashTable-equal_range-0aa]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::equal&lowbar;range
:relfileprefix: ../../../
:mrdocs:

Return a pair of iterators to entries equivalent to `key`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/pair-0b.adoc[bsl::pair&lt;iterator, iterator&gt;]
equal&lowbar;range(LOOKUP&lowbar;KEY const& key)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, LOOKUP&lowbar;KEY&gt;&colon;&colon;value
         &amp;&amp; BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

== Description

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

== Return Value

pair of iterators delimiting the equal range

== Parameters

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


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