max_load_factor: Get or set the maximum load factor
Description
Get or set the maximum load factor by reference, i.e. the number of elements per bucket.
Usage
max_load_factor(x, max_load = NULL)
Value
Returns a numeric, if max_load is NULL. Invisibly returns NULL, if max_load is numeric.
Arguments
x
A CppUnorderedSet, CppUnorderedMultiset, CppUnorderedMap, or CppUnorderedMultimap object.
max_load
The containers maximum load factor. If NULL, the function returns the container's current maximum load factor. Passing a number
sets the maximum load factor to that value.