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

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to std::ranges...l::sentinel(3) β€” the C++ Standard Libary page for std::ranges::elements_view::sentinel::sentinel. yes, that’s the whole name, and yes, she’s iconic. πŸ’…

✨ Synopsis ✨

here’s the constructor lineup, and I’m keeping the formatting tokens exactly as they are β€” the spacing is giving cppreference-manpage energy, but we respect the lore:

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

  requires Const && std::convertible_to<ranges::sentinel_t<V>,
(3) (since C++20)

                                        ranges::sentinel_t<Base>>;

Constructs a sentinel. literally her whole job, and she ate. πŸŽ€

  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 the underlying sentinel. πŸ¦‹

🌸 Parameters 🌸

  • end β€” a sentinel representing the end of (possibly const-qualified) V
  • i β€” a /*sentinel*/<false>

πŸ¦‹ Example πŸ¦‹

This section is incomplete. Reason: no example.

not me showing up to the example section with zero example 😭

πŸ“ Category πŸ“

  • Todo no example

xoxo, your Unix bestie πŸ’– β€” shoutout to http://cppreference.com, version date 2024.06.10, on the std::ranges...l::sentinel(3) page. periodt. 🫢

πŸ“¦ where this page comes from