std::unorde...size_type),(3)
std::unordered_multimap::end(size_type) π
okay so we're in the C++ Standard Libary manual (yes, βLibaryβ β I'm not fixing it, that's canon π«Ά), and this page is short but very specific. Let's go, bestie.
π NAME π
std::unordered_multimap::end(size_type), - std::unordered_multimap::end(size_type),
And yes, the second std::unordered_multimap::end(size_type), is really in there. Not a typo I made β the manpage is just being extra π
β¨ Synopsis β¨
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)
It hands you an iterator to the element following the last element of the bucket with index n. That element acts as a placeholder, and attempting to access it results in undefined behavior. Like, for real, do not touch it ππ
πΈ Parameters πΈ
nβ the index of the bucket to access π
π Return value π
Iterator to the element following the last element. That's the whole return value, bestie β¨
β‘ Complexity β‘
Constant. No hidden drama, periodt.
π See also π
begin(size_type)β returns an iterator to the beginning of the specified bucket π±cbegin(size_type)β (public member function) π
mwah π this cutie was sourced from http://cppreference.com, dated 2024.06.10, and the footer's lil truncated title is std::unorde...size_type),(3). Bye bestie, go access buckets responsibly! π«Άβ¨
π¦ 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