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

Return a theoretical upper bound on the largest number of elements that this unordered map could possibly hold&period; 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&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]
max&lowbar;size() const noexcept;
----


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