[#bsl-unordered_map-02b-max_load_factor-0e] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::max_load_factor :relfileprefix: ../../ :mrdocs: Set the maximum load factor to `newMaxLoadFactor`. == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void max_load_factor(float newMaxLoadFactor); ---- == Description Set the maximum load factor of this unordered map to the specified `newMaxLoadFactor`. If `newMaxLoadFactor < loadFactor()`, this operator will cause an immediate rehash (in violation of the C++11 standard); otherwise, it has a constant‐time cost. The behavior is undefined unless `0 < newMaxLoadFactor`. == Parameters [cols="1,4"] |=== | Name| Description | *newMaxLoadFactor* | new maximum load factor |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#