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

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

πŸ’– std::ranges...el::sentinel(3) β€” C++ Standard Libary πŸ’–

okay so bestie, welcome to the std::ranges...el::sentinel(3) page from the C++ Standard Libary. we're talking about std::ranges::enumerate_view::sentinel::sentinel, and it's giving very specific C++23 energy. no cap. ✨

🌸 NAME 🌸

std::ranges::enumerate_view::sentinel::sentinel β€” std::ranges::enumerate_view::sentinel::sentinel. that's the full name twice, because the NAME section said it twice; it's the sentinel constructor, and it's iconic. πŸ‘‘

πŸ’« Synopsis πŸ’«

          /*sentinel*/() = default;                                     (1)
       (since C++23)
          constexpr /*sentinel*/( /*sentinel*/<!Const> i )

              requires Const &&                                         (2)
       (since C++23)

                  std::convertible_to<ranges::sentinel_t<V>,
          ranges::sentinel_t<Base>>;
          private:
          constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end (3)
       (exposition only*)
          );

Constructs a sentinel. literally that's what it does, bestie. πŸ› οΈ

  1. Default constructor β€” value-initializes the underlying sentinel with ranges::sentinel_t<Base>(). (since C++23) πŸŽ€
  2. Conversion from /*sentinel*/<false> to /*sentinel*/<true> β€” move constructs the underlying sentinel end_ with std::move(other.end_). it's constrained by requires Const && std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>;. (since C++23) πŸ’…
  3. A private constructor β€” used by enumerate_view::end. move constructs end_ with std::move(end). this constructor is not accessible to users, so don't try it. (since C++23) πŸ™ˆ

🧚 Parameters 🧚

  • i β€” a /*sentinel*/<false>. that's the parameter, and it's doing its thing. πŸ’œ

πŸ“ Example πŸ“

This section is incomplete.

Reason: no example. 😭

πŸŽ€ Category πŸŽ€

  • Todo no example

made with πŸ’– from http://cppreference.com, dated 2024.06.10, page std::ranges...el::sentinel(3) β€” bye bestie, slay your ranges. 🫢

πŸ“¦ where this page comes from