std::ranges...w::sentinel(3)
π NAME π
std::ranges::join_view::sentinel β std::ranges::join_view::sentinel. Thatβs the whole name, bestie, no notes π
.
This is the std::ranges...w::sentinel(3) page from the C++ Standard Libary manual, and itβs giving very specific C++20 sentinel energy β¨.
β¨ Synopsis β¨
template< bool Const > (since C++20)
class /*sentinel*/ (exposition only*)
Okay so std::ranges::join_view::sentinel is the return type of join_view::end when either of the underlying ranges (V or ranges::range_reference_t<V>) is not a common_range, or when the parent join_view is not a forward_range. Thatβs the vibe check π«Ά.
If V is not a simple view, Const is true for sentinels returned from the const overloads, and false otherwise. If V is a simple view, Const is true. No cap π
.
π Member types π
Both of these member types are private and exposition-only, so peek respectfully bestie:
Parent(private) βconst ranges::join_view<V>ifConstistrue, otherwiseranges::join_view<V>. (exposition-only member type*)Base(private) βconst VifConstistrue, otherwiseV. (exposition-only member type*)
π¦ Data members π¦
Only one data member object here, and sheβs private + exposition-only:
end_(private) β a sentinel of typestd::sentinel_t<Base>obtained from (possibly const-qualified)V. (exposition-only member object*)
πΈ Member functions πΈ
- constructor β constructs a sentinel (public member function).
π Non-member functions π
operator==(C++20) β compares a sentinel with an iterator returned fromjoin_view::begin(function).
Thatβs the entire page, bestie π«Ά. Source/version: cppreference.com; date: 2024.06.10. The sentinel said slay and logged off πβ¨.
π¦ 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