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

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

Hey bestie! πŸ’– You're looking at the std::ranges...l::sentinel(3) page from the C++ Standard Library β€” yes, that’s the manual name, and we’re folding it in right here at the top so you don’t have to read a boring header line. Let’s get into it, because this sentinel is lowkey iconic.

πŸ’… NAME πŸ’…

std::ranges::join_view::sentinel::sentinel β€” std::ranges::join_view::sentinel::sentinel

okay so it’s literally the constructor for the sentinel of join_view. The name is a mouthful, but it ate. No cap.


🌸 SYNOPSIS 🌸

          /*sentinel*/() = default;
       (1) (since C++20)
          constexpr explicit /*sentinel*/( Parent& parent );
       (2) (since C++20)
          constexpr /*sentinel*/( /*sentinel*/<!Const> i )

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

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

Constructs a sentinel. That’s the whole vibe.

  1. Default constructor. Value-initializes the underlying sentinel.
  2. Initializes the underlying sentinel end_ with ranges::end(parent.base_).
  3. Conversion from /*sentinel*/<false> to /*sentinel*/<true>. Move constructs the underlying sentinel end_ with std::move(i.end_).

πŸ’– PARAMETERS πŸ’–

  • parent β€” a (possibly const-qualified) ranges::join_view
  • i β€” a /*sentinel*/<false>

these are the besties you pass in 🫢


πŸŽ€ EXAMPLE πŸŽ€

This section is incomplete

Reason: no example

not me finding a manpage with no example 😭 but we respect it.


πŸ¦‹ CATEGORY πŸ¦‹

  • Todo no example

sourced from http://cppreference.com, version 2024.06.10, page std::ranges...l::sentinel(3) πŸ’œβœ¨

πŸ“¦ where this page comes from