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

`equal&lowbar;range` overloads

== Synopses

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

Return a pair of iterators providing modifiable access to the sequence of objects in this flat hash table 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 table contains no object having `key`, then the two returned iterators will have the same value, `end()`&period; Note that since each key in a flat hash table is unique, the returned range contains at most one element&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/pair-0b.adoc[bsl::pair&lt;FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;::iterator, FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;::iterator&gt;]
xref:BloombergLP/bdlc/FlatHashTable/equal_range-05.adoc[equal&lowbar;range](KEY const& key);
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/equal_range-05.adoc[_» more&period;&period;&period;_]#

Return a pair of iterators providing non&hyphen;modifiable access to the sequence of objects in this table 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 table contains no objects having `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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/pair-0b.adoc[bsl::pair&lt;FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;::const&lowbar;iterator, FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;::const&lowbar;iterator&gt;]
xref:BloombergLP/bdlc/FlatHashTable/equal_range-01.adoc[equal&lowbar;range](KEY const& key) const;
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/equal_range-01.adoc[_» more&period;&period;&period;_]#

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;


[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;]
xref:BloombergLP/bdlc/FlatHashTable/equal_range-0aa.adoc[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;
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/equal_range-0aa.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/pair-0b.adoc[bsl::pair&lt;const&lowbar;iterator, const&lowbar;iterator&gt;]
xref:BloombergLP/bdlc/FlatHashTable/equal_range-0ad.adoc[equal&lowbar;range](LOOKUP&lowbar;KEY const& key) const
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;
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/equal_range-0ad.adoc[_» more&period;&period;&period;_]#


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