[#bsl-unordered_set-0d2d-max_load_factor-05]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_set-0d2d.adoc[unordered&lowbar;set]::max&lowbar;load&lowbar;factor
:relfileprefix: ../../
:mrdocs:

`max&lowbar;load&lowbar;factor` overloads

== Synopses

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

Return the maximum load factor allowed for this container&period; If an insert operation would cause `load&lowbar;factor` to exceed the `max&lowbar;load&lowbar;factor`, that same insert operation will increase the number of buckets and rehash the elements of the container into those buckets the (see rehash)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
float
xref:bsl/unordered_set-0d2d/max_load_factor-0b.adoc[max&lowbar;load&lowbar;factor]() const noexcept;
----

[.small]#xref:bsl/unordered_set-0d2d/max_load_factor-0b.adoc[_» more&period;&period;&period;_]#

Set the maximum load factor of this container to the specified `newLoadFactor`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/unordered_set-0d2d/max_load_factor-02.adoc[max&lowbar;load&lowbar;factor](float newLoadFactor);
----

[.small]#xref:bsl/unordered_set-0d2d/max_load_factor-02.adoc[_» more&period;&period;&period;_]#


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