[#BloombergLP-bslstl-HashTable-09-bucketIndexForKey-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable&lt;UnorderedMapKeyConfiguration&lt;basic&lowbar;string&lt;char&gt; const, pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;, TransparentHash, TransparentEqualTo, allocator&lt;pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;&gt;]::bucketIndexForKey
:relfileprefix: ../../../
:mrdocs:

`bucketIndexForKey` overloads

== Synopses

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

Return the index of the bucket that would contain all the elements having the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable-09/SizeType.adoc[SizeType]
xref:BloombergLP/bslstl/HashTable-09/bucketIndexForKey-00.adoc[bucketIndexForKey](xref:BloombergLP/bslstl/HashTable-09/KeyType.adoc[KeyType] const& key) const;
----

[.small]#xref:BloombergLP/bslstl/HashTable-09/bucketIndexForKey-00.adoc[_» more&period;&period;&period;_]#

Return the index of the bucket that would contain all the elements equivalent to the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:BloombergLP/bslstl/HashTable-09/SizeType.adoc[SizeType]
xref:BloombergLP/bslstl/HashTable-09/bucketIndexForKey-07.adoc[bucketIndexForKey](LOOKUP&lowbar;KEY const& key) const
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASHER,    LOOKUP&lowbar;KEY&gt;&colon;&colon;value
   &amp;&amp; BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;COMPARATOR,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bslstl/HashTable-09/bucketIndexForKey-07.adoc[_» more&period;&period;&period;_]#


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