[#bsl-unordered_map-0bf-bucket-04]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-0bf.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]::bucket
:relfileprefix: ../../
:mrdocs:

`bucket` overloads

== Synopses

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

Return the bucket index for the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-0bf/size_type.adoc[size&lowbar;type]
xref:bsl/unordered_map-0bf/bucket-09.adoc[bucket](xref:bsl/unordered_map-0bf/key_type.adoc[key&lowbar;type] const& key) const;
----

[.small]#xref:bsl/unordered_map-0bf/bucket-09.adoc[_» more&period;&period;&period;_]#

Return the bucket index for the specified transparent `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/unordered_map-0bf/size_type.adoc[size&lowbar;type]
xref:bsl/unordered_map-0bf/bucket-05.adoc[bucket](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:bsl/unordered_map-0bf/bucket-05.adoc[_» more&period;&period;&period;_]#


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