std::ranges...l::sentinel(3)
π NAME π
okay bestie, welcome to the std::ranges...l::sentinel(3) era π
this page is from the C++ Standard Libary, and the main character is literally std::ranges::take_while_view::sentinel::sentinel β yes, the whole gorgeous mouthful π the NAME situation is: std::ranges::take_while_view::sentinel::sentinel - std::ranges::take_while_view::sentinel::sentinel. iconic, no notes β¨
β¨ Synopsis β¨
here's the raw signature tea, copied with love and zero edits π«Ά
/*sentinel*/() = default;
(1) (since C++20)
constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end,
(2) (since C++20)
const Pred* pred );
constexpr /*sentinel*/( /*sentinel*/<!Const> s )
requires Const &&
(3) (since C++20)
std::convertible_to<ranges::sentinel_t<V>,
ranges::sentinel_t<Base>>;
all three of these are (since C++20) btw πΈ
so what do these constructors do? they construct a sentinel. that's the vibe. the deets:
- Default constructor. Value-initializes the underlying sentinel and the pointer to predicate.
- Initializes the underlying sentinel with
endand the pointer to predicate withpred. - Conversion from
/*sentinel*/<false>to/*sentinel*/<true>. Copy constructs corresponding members. It also has this requirement:requires Const && std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>;
π Parameters π
endβ a sentinel representing the end of (possibly const-qualified)V.predβ a pointer to predicate.iβ a/*sentinel*/<false>.
πΈ Example πΈ
This section is incomplete π Reason: no example.
π¦ Category π¦
Todo no example
kisses and cppreference vibes π«Ά source: http://cppreference.com π version/date: 2024.06.10 π page: std::ranges...l::sentinel(3) β that's the whole manual, bestie, go slay β¨
π¦ 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