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

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

πŸ’– std::ranges::zip_view::sentinel (3) πŸ’–

okay bestie, welcome to the C++ Standard Libary manual ✨ β€” the header page thingy is std::ranges...ew::sentinel(3), and the full name in the NAME section is std::ranges::zip_view::sentinel. no cap, we're in (3) land.

🌸 NAME 🌸

std::ranges::zip_view::sentinel β€” std::ranges::zip_view::sentinel

πŸ¦‹ Synopsis πŸ¦‹

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

This is the return type of zip_view::end when the underlying view is not a common_range. πŸ’…

The type /*sentinel*/<true> or /*sentinel*/<false> treats the underlying view as const-qualified or non-const-qualified respectively. 🫢

πŸŽ€ Data members πŸŽ€

Member name β†’ member definition, and yes bestie there's exactly one private member to clock πŸ‘€:

  • end_ (private) β€” std::tuple<ranges::sentinel_t<Views>...> if Const is false, or std::tuple<ranges::sentinel_t<const Views>...> if Const is true. (exposition-only member object*)

πŸ’… Member functions πŸ’…

  • constructor β€” constructs a sentinel (public member function). πŸ› οΈ

🌈 Non-member functions 🌈

  • operator== β€” compares a sentinel with an iterator returned from zip_view::begin (C++23) (function). πŸ”
  • operator- β€” computes the distance between a sentinel and an iterator returned from zip_view::begin (C++23) (function). πŸ“

mwah πŸ’‹ that's the whole vibe. source is http://cppreference.com, date is 2024.06.10, and the footer's version string is std::ranges...ew::sentinel(3). bye bestie 🫢✨

πŸ“¦ where this page comes from