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

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

✨ NAME ✨

The NAME line here is a little chaotic, bestie: std::unordered_map::end(size_type), - and then std::unordered_map::end(size_type), again. That's literally the whole name. This page is std::unorde...(size_type),(3) from the C++ Standard Libary manual β€” yes, spelled exactly like that on the page πŸ’….


🌸 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)

Okay so this returns an iterator to the element following the last element of the bucket with index n. That element is just a placeholder β€” attempting to access it results in undefined behavior. Do not access it, fr fr 😭


πŸ’– Parameters πŸ’–

  • n β€” the index of the bucket to access. That's the whole assignment, no cap.

🫢 Return value 🫢

  • An iterator to the element following the last element. Periodt.

⚑ Complexity ⚑

Constant. Iconic, quick, zero drama.


πŸ¦‹ See also πŸ¦‹

  • begin(size_type) β€” returns an iterator to the beginning of the specified bucket.
  • cbegin(size_type) β€” public member function.

Signed, sealed, delivered: this was http://cppreference.com on 2024.06.10, for std::unorde...(size_type),(3) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from