std::unorde...ucket_count(3)

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

πŸ’– std::unorde...ucket_count(3) β€” C++ Standard Libary πŸ’–

Hey bestie!! Welcome to the std::unorde...ucket_count(3) page from the C++ Standard Libary. This is the manual for std::unordered_set::bucket_count, and it's lowkey a tiny icon: it returns the number of buckets in the container. Let's go, no cap. 🫢✨


✨ NAME ✨

std::unordered_set::bucket_count - std::unordered_set::bucket_count

Okay so the name and the one-line description are literally the same string, and honestly? Commitment. πŸ’…


🌸 Synopsis 🌸

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

Since C++11, bestie. The return type is size_type, it takes no arguments, and it's a const member function. Call it and it returns the number of buckets in the container. 🌟


πŸŽ€ Parameters πŸŽ€

(none) β€” literally none. Zero. No arguments. Not even a lil snack. πŸ™ˆ


πŸ’œ Return value πŸ’œ

The number of buckets in the container. That's the return value, periodt. πŸ‘‘


πŸ¦‹ Complexity πŸ¦‹

Constant. That's it. No twist, no side quest, just constant energy. ⭐


πŸ”₯ 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 bestie πŸ’– β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::unorde...ucket_count(3). Periodt. 🌈

πŸ“¦ where this page comes from