std::ranges...w::sentinel(3)
π NAME π
Okay so welcome to the std::ranges...w::sentinel(3) page from the C++ Standard Libary β yes, that's their spelling, not mine π. This page is literally about the adjacent_view sentinel, and the NAME entry is the same thing twice, iconic:
std::ranges::adjacent_view::sentinel β std::ranges::adjacent_view::sentinel
π¦ Synopsis π¦
template< bool Const > (exposition only*)
class /*sentinel*/; (since C++23)
So bestie, this is the return type of adjacent_view::end when the underlying view is not a common_range. The type /*sentinel*/<true> is returned by the const-qualified overload, and the type /*sentinel*/<false> is returned by the non-const-qualified overload. Slay.
β¨ Member types β¨
- Member type:
Base(private) β Definition:const VifConstistrue, otherwiseV. (exposition-only member type*)
π Data members π
- Member object:
end_(private) β Definition: A sentinel obtained from (possibly const-qualified)V. (exposition-only member object*)
π Member functions π
- constructor β constructs a sentinel (public member function).
π Non-member functions π
operator==β compares a sentinel with an iterator returned fromadjacent_view::begin(C++23) (function).operator-β computes the distance between a sentinel and an iterator returned fromadjacent_view::begin(C++23) (function).
π Example π
- This section is incomplete
- Reason: no example
π₯ References π₯
- C++23 standard (ISO/IEC 14882:2023):
26.7.25.4 Class template adjacent_view::sentinel [range.adjacent.sentinel]
πΈ See also πΈ
Category:
- Todo no example
And that's the whole vibe! Source/version is http://cppreference.com, date 2024.06.10, page std::ranges...w::sentinel(3) β bye bestie, go slay some 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