std::unorde...load_factor(3)
okay bestie, welcome to std::unorde...load_factor(3) from the C++ Standard Libary β yes, that's the manual name right there at the top, we're folding it in instead of copying the header line, periodt. β¨
πΈ NAME πΈ
std::unordered_multiset::max_load_factor β std::unordered_multiset::max_load_factor
(yes, same thing twice, it's giving name reveal so nice they said it twice π )
β¨ Synopsis β¨
bestie, there are two versions and both are since C++11:
float max_load_factor() const; (1) (since C++11)
void max_load_factor( float ml ); (2) (since C++11)
It manages the maximum load factor β that's the number of elements per bucket. The container automatically increases the number of buckets if the load factor exceeds this threshold. No cap.
- Returns current maximum load factor.
- Sets the maximum load factor to
ml.
π Parameters π
mlβ new maximum load factor setting. That's the whole parameter, bestie. π
π Return value π
- Current maximum load factor. π
(none)β literally no return value, it's giving void energy.
π¦ Complexity π¦
Constant. That's it. No hidden quest, no side plot. β
π See also π
load_factorβ returns average number of elements per bucket (public member function). Obsessed with a little cross-reference, iykyk. π
mwah π this page came from http://cppreference.com, dated 2024.06.10 β go slay those buckets, bestie π«Άπ
π¦ 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