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

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

Bestie, welcome to the std::unorde...(size_type),(3) page from the C++ Standard Libary β€” yes, that’s the header vibe β€” and it’s giving bucket-iterator realness. We’re keeping every literal detail, periodt. πŸ’…

🌸 NAME 🌸

Okay so the NAME line is std::unordered_set::begin(size_type), β€” with the comma, bestie β€” followed by a little dash, then std::unordered_set::begin(size_type), again. We are not deleting the comma or the repeat. πŸ™ˆ

✨ Synopsis ✨

Here’s the exact synopsis, all C++11-coded and iconic:

local_iterator begin( size_type n );               (since C++11)
const_local_iterator begin( size_type n ) const;   (since C++11)
const_local_iterator cbegin( size_type n ) const;  (since C++11)

And the synopsis also says: Returns an iterator to the first element of the bucket with index n. 🫢

πŸŽ€ Parameters πŸŽ€

  • n β€” the index of the bucket to access. That’s it, that’s the parameter, and it’s lowkey important. πŸ¦‹

πŸ¦‹ Return value πŸ¦‹

Iterator to the first element. Slay. πŸ’–

πŸ’… Complexity πŸ’…

Constant. No cap, constant. ⭐

🌈 See also 🌈

  • end(size_type) β€” returns an iterator to the end of the specified bucket. Bestie, that’s the bucket-end counterpart. πŸ’œ
  • cend(size_type) β€” public member function, also in the bucket-end club. πŸŽ€

Signing off with the source/version and date: this page is from http://cppreference.com, dated 2024.06.10. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from