std::unorde...bucket_size(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms