std::unorde...bucket_size(3)
π std::unordered_multiset::bucket_size π
okay so bestie, welcome to the std::unorde...bucket_size(3) page from the C++ Standard Libary β yes, thatβs the manual name and weβre folding it in near the top instead of copying the header line, because we have main character energy. itβs the std::unordered_multiset::bucket_size page, itβs C++11 girlie, and itβs honestly so short and iconic. letβs go β¨
πΈ NAME πΈ
std::unordered_multiset::bucket_size β std::unordered_multiset::bucket_size
not me repeating it, thatβs literally what the page says, and we keep every detail around here. π
β¨ Synopsis β¨
size_type bucket_size( size_type n ) const; (since C++11)
okay so this one returns the number of elements in the bucket with index n. thatβs the whole assignment, bestie. no cap. π¦
π§ Parameters π§
nβ the index of the bucket to examine π
π Return value π
the number of elements in the bucket n. periodt. β¨
β³ Complexity β³
linear in the size of the bucket n. so like, itβs not doing a little constant-time magic trick β itβs linear in that bucketβs size, and thatβs the fact. π
π See also π
bucket_countβ returns the number of buckets (public member function) π₯
okay bye bestie, this has been std::unorde...bucket_size(3) β source/version: http://cppreference.com, date: 2024.06.10. mwah ππ
π¦ 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