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

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

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

C++ Standard Libary manual page std::ranges...l::sentinel(3) reporting for duty β€” okay bestie, this one is all about the sentinel constructor vibes, no cap πŸ’…


πŸ’– NAME πŸ’–

  • std::ranges::adjacent_view::sentinel::sentinel β€” std::ranges::adjacent_view::sentinel::sentinel

✨ 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>>;

Okay so, straight up: it Constructs a sentinel. ✨ Here's the tea:

  1. Default constructor. Value-initializes the underlying sentinel (denoted as end_) with ranges::sentinel_t<Base>().
  2. Conversion from /*sentinel*/<false> to /*sentinel*/<true>. Move constructs the underlying sentinel end_ with the corresponding member of i.

This type also has a private constructor which is used by adjacent_view::end. This constructor is not accessible to users. πŸ™ˆ

πŸŽ€ Parameters πŸŽ€

  • i β€” a /*sentinel*/<false>

🌸 Example 🌸

This section is incomplete. Reason: no example. 😭

πŸ“ Category πŸ“

  • Todo no example

From http://cppreference.com, dated 2024.06.10, page std::ranges...l::sentinel(3) β€” mwah, slay, bye bestie 🫢✨

πŸ“¦ where this page comes from