std::ranges::subrange::end(3)

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

πŸ’– NAME πŸ’–

std::ranges::subrange::end β€” aka std::ranges::subrange::end (yes bestie, the NAME section is doing the mirror thing πŸ’…). This is the C++ Standard Libary page for std::ranges::subrange::end(3), and we are so ready.


🌈 Synopsis 🌈

constexpr S end() const;  (since C++20)

Returns the sentinel indicating the end of the subrange. There’s literally a whole diagram for the vibe: range-begin-end.svg ✨.


🫢 Parameters 🫢

(none). Not a single parameter, bestie β€” the parameter list is empty, as in literally no inputs. Zero. Nada. 🫢


πŸŽ€ Return value πŸŽ€

A sentinel copy-constructed from the stored sentinel. That’s the whole tea β˜•πŸ’–.


πŸ¦‹ Example πŸ¦‹

This section is incomplete.

Reason: no example.

Not me getting an incomplete example section 😭 β€” we move anyway, bestie πŸ¦‹.


⭐ See also ⭐

  • begin β€” obtains the iterator (C++20) (public member function)
  • end β€” another see-also entry, just end (no extra blurb given)
  • cend β€” returns an iterator to the end of a container or array (C++11) (function template) (C++14)
  • ranges::end β€” returns a sentinel indicating the end of a range (C++20) (customization point object)

πŸ’€ Category πŸ’€

  • Todo no example

Yes, the category is literally Todo no example. Iconic in a deeply cursed way πŸ’€βœ¨.


okay that’s the page, bestie! source: http://cppreference.com, version/date: 2024.06.10, footer title: std::ranges::subrange::end(3). byeee, go get that sentinel πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from