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

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

okay so we're in the C++ Standard Libary manual β€” yes bestie, it's spelled like that up top πŸ™ˆ β€” and the page is std::unorde...(size_type),(3). It's bucket-end iterator business for std::unordered_set. Let's go πŸ’…

✨ NAME ✨

  • std::unordered_set::end(size_type), -
  • std::unordered_set::end(size_type),

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

This one returns an iterator to the element following the last element of the bucket with index n. It's a placeholder, and attempting to access it results in undefined behavior β€” so like, do not dereference it, bestie πŸ˜­πŸ’€.

πŸŽ€ Parameters πŸŽ€

  • n β€” the index of the bucket to access.

πŸ¦‹ Return value πŸ¦‹

Iterator to the element following the last element. That's the whole vibe. ✨

πŸ’œ Complexity πŸ’œ

Constant. No cap.

🌈 See also 🌈

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

mwah πŸ’‹ β€” served fresh from http://cppreference.com, dated 2024.06.10, for the std::unorde...(size_type),(3) page. Byeeee πŸ¦‹

πŸ“¦ where this page comes from