std::unorde...ucket_count(3)

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

πŸ’– std::unorde...ucket_count(3) πŸ’–

okay bestie, welcome to std::unorde...ucket_count(3) from the C++ Standard Libary manual. This page is short, specific, and honestly kind of iconic for how hard it commits to one tiny job. Let's go. ✨

🌸 NAME 🌸

std::unordered_map::bucket_count - std::unordered_map::bucket_count β€” yes bestie, that's the name twice. No notes. πŸ’…

✨ Synopsis ✨

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

Returns the number of buckets in the container. That's the whole plot. No cap. πŸŽ€

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters. Not a single one. The void is the moment. 🫢

πŸ¦‹ Return value πŸ¦‹

The number of buckets in the container. It's giving "count the buckets" main character energy. ✨

πŸ’… Complexity πŸ’…

Constant. No drama, no scaling, just constant. Periodt. πŸ‘‘

πŸ‘‘ 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)

okay that's the page bestie! source: http://cppreference.com, version/date: 2024.06.10, page: std::unorde...ucket_count(3). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from