[#bsl-unordered_map-02b-bucket_size]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::bucket&lowbar;size
:relfileprefix: ../../
:mrdocs:

Return the number of elements in the bucket at `index`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type]
bucket&lowbar;size(xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type] index) const;
----

== Description

Return the number of elements contained in the bucket at the specified `index` in the array of buckets maintained by this unordered map&period; The behavior is undefined unless `index &lt; bucket&lowbar;count()`&period;

== Return Value

number of elements in the bucket

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| bucket index
|===


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