std::unorde...:bucket_size(3)

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

πŸ’– NAME πŸ’–

okay so bestie, this is the manual page for std::unordered_map::bucket_size β€” and the NAME section is literally just std::unordered_map::bucket_size twice in a trench coat. We're in the C++ Standard Libary manual, at the page std::unorde...:bucket_size(3). Iconic. πŸŽ€

✨ 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 the whole vibe. πŸ’…

🌸 Parameters 🌸

  • n β€” the index of the bucket you want to examine. That's it, bestie, just the index. πŸ¦‹

πŸ¦‹ Return value πŸ¦‹

The number of elements in the bucket n. No cap. ✨

πŸ”₯ Complexity πŸ”₯

Linear in the size of the bucket n β€” that's the stated complexity, periodt. πŸ’€

πŸ‘‘ See also πŸ‘‘

  • bucket_count β€” returns the number of buckets (public member function). Obsessed with her. 🫢

This page came from http://cppreference.com, version date 2024.06.10, and it's tagged std::unorde...:bucket_size(3). Bye bestie, go count those buckets πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from