std::unorde...load_factor(3)
β¨ NAME β¨
okay bestie, this is the C++ Standard Libary manual, and today's main character is std::unordered_multimap::max_load_factor π
the NAME entry is literally std::unordered_multimap::max_load_factor β dash β std::unordered_multimap::max_load_factor, which is very "I said what I said" of it, and we respect it π«Ά
πΈ Synopsis πΈ
it's giving two overloads, both since C++11:
float max_load_factor() const; (1) (since C++11)
void max_load_factor( float ml ); (2) (since C++11)
so what does it do? it manages the maximum load factor β that's the number of elements per bucket, bestie πͺ£ and the container automatically increases the number of buckets if the load factor exceeds this threshold. no cap, that's the whole vibe.
- 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. periodt β
π See also π
load_factorβ returns average number of elements per bucket (public member function) π¦
k bye bestie π this page came from http://cppreference.com, dated 2024.06.10, and the footer tag is the very truncated std::unorde...load_factor(3) β slay and goodbye π
π¦ 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