[#bsl-unordered_map-02b-max_bucket_count] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::max_bucket_count :relfileprefix: ../../ :mrdocs: Return a theoretical upper bound on the number of buckets. == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_map-02b/size_type.adoc[size_type] max_bucket_count() const noexcept; ---- == Description Return a theoretical upper bound on the largest number of buckets that this unordered map could possibly manage. Note that there is no guarantee that the unordered map can successfully grow to the returned size, or even close to that size, without running out of resources. == Return Value theoretical maximum number of buckets [.small]#Created with https://www.mrdocs.com[MrDocs]#