std::unorde...size_type),(3)
π std::unordered_multiset::end(size_type) π
okay so this is from the C++ Standard Libary manual, and the header up top is that iconic truncated std::unorde...size_type),(3) situation π. Todayβs main character is std::unordered_multiset::end(size_type), and bestie, there are multiple flavors. π«Ά
β¨ NAME β¨
std::unordered_multiset::end(size_type), -std::unordered_multiset::end(size_type),
πΈ Synopsis πΈ
three overloads, all since C++11, all iconic:
local_iterator end( size_type n ); (since C++11)
const_local_iterator end( size_type n ) const; (since C++11)
const_local_iterator cend( size_type n ) const; (since C++11)
okay so what it does: it returns an iterator to the element following the last element of the bucket with index n. This element acts as a placeholder, and attempting to access it results in undefined behavior. π« like, do not touch the placeholder β undefined behavior is not a cute look.
π Parameters π
nβ the index of the bucket to access.
π¦ Return value π¦
An iterator to the element following the last element. thatβs the whole return value, no cap. β¨
π Complexity π
Constant. literally constant, bestie β no scaling drama. π
π See also π
begin(size_type)β returns an iterator to the beginning of the specified bucket.cbegin(size_type)β (public member function).
mwah π β source/version: http://cppreference.com, date: 2024.06.10. π
π¦ 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