std::unorde...bucket_count(3)

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

okay bestie, welcome to the std::unorde...bucket_count(3) page from the C++ Standard Libary manual β€” it’s lowkey iconic and we’re gonna get through it together πŸ’…βœ¨

🌸 NAME 🌸

std::unordered_multimap::bucket_count β€” std::unordered_multimap::bucket_count

yes, it’s literally the same thing twice, that’s just how NAME sections roll, no cap 🫢

πŸŽ€ Synopsis πŸŽ€

size_type bucket_count() const;  (since C++11)

It returns the number of buckets in the container. That’s the tea β˜•βœ¨

πŸ’– Parameters πŸ’–

(none) β€” literally none, bestie. No args, no drama, no stress 🌈

πŸ¦‹ Return value πŸ¦‹

The number of buckets in the container. Periodt πŸ’…

πŸ”₯ Complexity πŸ”₯

Constant β€” it’s giving steady, reliable, no surprises πŸŽ€

🌟 See also 🌟

  • bucket_size β€” returns the number of elements in specific bucket (public member function)
  • max_bucket_count β€” returns the maximum number of buckets (public member function)

xoxo πŸ’– this iconic page is from source http://cppreference.com, version/date 2024.06.10, and the title is std::unorde...bucket_count(3). Slay the day, bestie πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from