Return the maximum load factor allowed for this unordered map.

Synopsis

Declared in <bslstl_unorderedmap.h>

float
max_load_factor() const noexcept;

Description

Return the maximum load factor allowed for this unordered map. Note that if an insert operation would cause the load factor to exceed the max_load_factor, that same insert operation will increase the number of buckets and rehash the elements of the container into those buckets (see rehash).

Return Value

current maximum load factor

Created with MrDocs