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

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

πŸ¦‹ std::ranges::take_view::sentinel::sentinel πŸ¦‹

okay so bestie, welcome to std::ranges...l::sentinel(3) from the C++ Standard Libary. We’re talking about std::ranges::take_view::sentinel::sentinel β€” yes, the name is giving template realness, but the vibe check is simple: these are the constructors for that sentinel. No cap. πŸ’…

🌸 NAME 🌸

std::ranges::take_view::sentinel::sentinel β€” std::ranges::take_view::sentinel::sentinel. Yep, it says it twice in the original, and honestly? Same. It’s literally the constructor name, and it has main character energy. 🫢

✨ Synopsis ✨

          /*sentinel*/() = default;
       (1) (since C++20)
          constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end );
       (2) (since C++20)
          constexpr /*sentinel*/( /*sentinel*/<!Const> s )

            requires Const &&
       (3) (since C++20)

                     std::convertible_to<ranges::sentinel_t<V>,
          ranges::sentinel_t<Base>>;

Constructs a sentinel. Here are the three overloads, all (since C++20):

  1. Default constructor β€” value-initializes the underlying sentinel. πŸ’–
  2. Initializes the underlying sentinel with end. ✨
  3. Conversion from /*sentinel*/<false> to /*sentinel*/<true>. Move constructs corresponding members. πŸŽ€

πŸŽ€ Parameters πŸŽ€

  • end β€” a sentinel representing the end of (possibly const-qualified) V. 🌈
  • s β€” a /*sentinel*/<false>. πŸ¦‹

🧚 Example 🧚

This section is incomplete.

Reason: no example.

not me getting emotional over a missing example 😭

πŸ‘‘ Category πŸ‘‘

  • Todo no example

mwah πŸ’‹ huge kiss to http://cppreference.com and the 2024.06.10 date β€” that’s the footer sign-off, bestie, and we’re out. periodt. 🫢

πŸ“¦ where this page comes from