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

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

🌸 NAME 🌸

std::ranges::take_view::sentinel β€” std::ranges::take_view::sentinel πŸ’–

okay so this is the std::ranges::take_view::sentinel page from the C++ Standard Libary manual β€” you might spot it as std::ranges...w::sentinel(3) in the wild. bestie, we are fully in sentinel territory 🫢

✨ Synopsis ✨

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

The return type of take_view::end when the underlying view is not a sized_range. ✨

The type /*sentinel*/<true> is returned by the const-qualified overload. The type /*sentinel*/<false> is returned by the non-const-qualified overload. πŸ’…

πŸŽ€ Member types πŸŽ€

  • Member type: Base (private) β€” Definition: const V if Const is true, otherwise V. (exposition-only member type*)

πŸ¦‹ Data members πŸ¦‹

  • Member object: end_ (private) β€” Definition: a sentinel of type std::sentinel_t<Base> obtained from (possibly const-qualified) V. (exposition-only member object*)

πŸ’œ Member functions πŸ’œ

  • constructor β€” constructs a sentinel (public member function).
  • base (C++20) β€” returns the underlying sentinel (public member function).

🌈 Non-member functions 🌈

  • operator== (C++20) β€” compares a sentinel with an iterator returned from take_view::begin (function).

mwah πŸ’‹ β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::ranges...w::sentinel(3). byeee bestie ✨

πŸ“¦ where this page comes from