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

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

🌸 NAME 🌸

Okay bestie, welcome to the iconic page for std::ranges...ew::sentinel(3) πŸ’– This is from the C++ Standard Libary manual (yes, that spelling is literally what it says, ily). Today’s main character is std::ranges::slide_view::sentinel. Periodt. ✨


✨ Synopsis ✨

class /*sentinel*/;  (since C++23)
                             (exposition only*)

So this thing is the return type of slide_view::end when the underlying view is not a common_range. No cap. And the /*sentinel*/ is used only when /*slide-caches-first*/<V> is true. That’s the vibe check. πŸ¦‹


🧚 Member functions 🧚

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

πŸ¦‹ Non-member functions πŸ¦‹

  • operator== β€” compares a sentinel with an iterator returned from slide_view::begin (C++23) (function)
  • operator- β€” computes the distance between a sentinel and an iterator returned from slide_view::begin (C++23) (function)

πŸ“ Example πŸ“

This section is incomplete. Reason: no example. 😭

Literally no example here yet, bestie. The page said so, not me. 🫢


πŸ”₯ References πŸ”₯

  • C++23 standard (ISO/IEC 14882:2023):
    • 26.7.29.4 Class slide_view::sentinel [range.slide.sentinel]

🌈 See also 🌈

No see also refs are listed here β€” that part is blank, bestie. Lowkey empty but still iconic. πŸ’…


πŸ’œ Category πŸ’œ

  • Todo no example

That’s the whole page! Source/version vibes: http://cppreference.com, dated 2024.06.10. Catch you in the next commit πŸ’–βœ¨

πŸ“¦ where this page comes from