std::unorde...load_factor(3)
π NAME π
okay bestie, we're on the std::unorde...load_factor(3) page in the C++ Standard Libary manual. The name is literally std::unordered_multimap::load_factor - std::unordered_multimap::load_factor β yes, it said it twice, and honestly? iconic. π
β¨ Synopsis β¨
float load_factor() const; (since C++11)
Returns the average number of elements per bucket, that is, size() divided by bucket_count(). it's giving "math but make it container vibes" fr fr. since C++11, periodt. π¦
π Parameters π
- (none) β literally zero parameters, not a single one, bestie. π
πΈ Return value πΈ
Average number of elements per bucket. that's the tea. π
π₯ Complexity π₯
Constant. no cap, it's not doing a little marathon. β
π See also π
max_load_factorβ manages maximum average number of elements per bucket (public member function). sibling behavior, we love to see it. π«Ά
k bye, this cutie came from cppreference.com and is dated 2024.06.10 πβ¨
π¦ 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