std::ranges...w::sentinel(3)
π NAME π
std::ranges::elements_view::sentinel β std::ranges::elements_view::sentinel. yes bestie, the name is literally right there twice and it's serving symmetry π. This is the page for it in the C++ Standard Libary manual.
β¨ Synopsis β¨
okay so here's the whole shape of it, no cap:
template< bool Const > (exposition only*)
class /*sentinel*/;
The return type of elements_view::end when the underlying view is not a common_range π.
The type /*sentinel*/<true> is returned by the const-qualified overload. The type /*sentinel*/<false> is returned by the non-const-qualified overload. periodt π
.
π 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).base(C++20) β returns the underlying sentinel (public member function).
π Non-member functions π
operator==(C++20) β compares a sentinel with an iterator returned fromelements_view::begin(function).operator-(C++20) β computes the distance between a sentinel and an iterator returned fromelements_view::begin(function).
source/version/date vibes: http://cppreference.com Β· 2024.06.10 Β· page std::ranges...w::sentinel(3) β bye bestie, go read your ranges docs ππ«Άβ¨
π¦ 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