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

Set the maximum load factor of this unordered map to the specified `newMaxLoadFactor`&period; If `newMaxLoadFactor &lt; loadFactor()`, this operator will cause an immediate rehash (in violation of the C&plus;&plus;11 standard)&semi; otherwise, it has a constant&hyphen;time cost&period; The behavior is undefined unless `0 &lt; newMaxLoadFactor`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
max&lowbar;load&lowbar;factor(float newMaxLoadFactor);
----


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