std::ranges...ew::sentinel(3)

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

🌸 std::ranges...ew::sentinel(3) β€” fresh from the C++ Standard Libary 🌸

okay so bestie, welcome to the std::ranges::join_with_view::sentinel page β€” yes, it’s a mouthful, no, we are not skipping a single crumb πŸ’…


✨ NAME ✨

std::ranges::join_with_view::sentinel β€” std::ranges::join_with_view::sentinel πŸ’… (yes, it said it twice, and honestly? iconic.)

🌈 Synopsis 🌈

          template< bool Const >  (since C++23)
          class /*sentinel*/      (exposition only*)

So here’s the tea: this lil class is the return type of join_with_view::end when either of the underlying ranges (V or ranges::range_reference_t<V>) is not a common_range, or when the parent join_with_view is not a forward_range. πŸ‘‘

Vibe check on Const: if either V or Pattern is not a simple view, Const is true for sentinels returned from the const overloads, and false otherwise. If V and Pattern are simple views, Const is true. No cap, those are the rules. πŸ’–

πŸŽ€ Member functions πŸŽ€

  • constructor β€” constructs a sentinel (public member function) ✨

πŸ’– Non-member functions πŸ’–

  • operator== β€” compares a sentinel with an iterator returned from join_with_view::begin (C++23) (function) πŸ’…

okay that’s the whole page, bestie β€” no missing details, no skipped bits, just sentinel realness. bye bestie! This cutie came from http://cppreference.com, dated 2024.06.10, footer vibe: std::ranges...ew::sentinel(3) πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from