std::ranges...el::sentinel(3)
π 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. π οΈ
- Default constructor β value-initializes the underlying sentinel with
ranges::sentinel_t<Base>(). (since C++23) π - Conversion from
/*sentinel*/<false>to/*sentinel*/<true>β move constructs the underlying sentinelend_withstd::move(other.end_). it's constrained byrequires Const && std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>;. (since C++23) π - A private constructor β used by
enumerate_view::end. move constructsend_withstd::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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms