[#bsl-unordered_multiset-06c-bucket-06]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset]::bucket
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/size_type.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::size&lowbar;type]
bucket(xref:bsl/unordered_multiset-06c/key_type.adoc[key&lowbar;type] const& key) const;
----

== Description

Return the index of the bucket, in the array of buckets of this container, where a value equivalent to the specified `key` would be inserted&period;

== Return Value

index of the bucket for `key`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key value whose bucket is requested
|===


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