std::unorde...bucket_size(3)

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

πŸ’– NAME πŸ’–

okay so this is the manual page for std::unorde...bucket_size(3) β€” aka std::unordered_multimap::bucket_size β€” and yes bestie, we are getting into bucket business πŸ’…


✨ Synopsis ✨

size_type bucket_size( size_type n ) const;  (since C++11)

Returns the number of elements in the bucket with index n. that's it, that's the whole vibe 🫢


πŸŽ€ Parameters πŸŽ€

  • n β€” the index of the bucket to examine πŸ‘€

🌸 Return value 🌸

The number of elements in the bucket n. literally just the count, no cap ✨


πŸ¦‹ Complexity πŸ¦‹

Linear in the size of the bucket n. so like, it scales with how thicc that bucket is 😭


πŸ‘‘ See also πŸ‘‘

  • bucket_count β€” returns the number of buckets (public member function) πŸͺ£

mwah πŸ’‹ thanks for reading bestie, stay hydrated and may all your buckets be exactly the size you expect πŸ“

this iconic little page comes from cppreference.com and is dated 2024.06.10 β€” periodt πŸ’…

πŸ“¦ where this page comes from