std::unorde...load_factor(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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.

  1. Returns current maximum load factor.
  2. Sets the maximum load factor to ml.

πŸŽ€ Parameters πŸŽ€

  • ml β€” new maximum load factor setting. That's the whole parameter, bestie. πŸŽ€

πŸ’– Return value πŸ’–

  1. Current maximum load factor. πŸ’–
  2. (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