std::unorde...size_type),(3)

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

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