std::unorde..._load_factor(3)
π NAME π
okay so bestie, this is the <std::unorde..._load_factor(3)> page from the C++ Standard Libary manual. The NAME entry is:
std::unordered_set::max_load_factor-std::unordered_set::max_load_factor
π¦ Synopsis π¦
two overloads, both marked (since C++11):
float max_load_factor() const; (1) (since C++11)
void max_load_factor( float ml ); (2) (since C++11)
this whole situation manages the maximum load factor β that's the number of elements per bucket, iykyk. The container automatically increases the number of buckets if the load factor exceeds this threshold. no manual bucket wrangling required β¨
- Returns current maximum load factor.
- Sets the maximum load factor to
ml.
πΈ Parameters πΈ
mlβ new maximum load factor setting
π Return value π
- Current maximum load factor.
- (none)
β Complexity β
Constant. literally constant, bestie β no sneaky extra work hiding in here π
π See also π
load_factorβ returns average number of elements per bucket (public member function)
byeee π«Ά this page came from http://cppreference.com, dated 2024.06.10, and its page id is std::unorde..._load_factor(3). slay and read your load factors responsibly π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms