std::ranges...ew::sentinel(3)
π NAME π
std::ranges::transform_view::sentinel β yes, bestie, itβs std::ranges::transform_view::sentinel again. This page comes from the C++ Standard Libary manual, and the header shortens the title to std::ranges...ew::sentinel(3). Iconic.
β¨ SYNOPSIS β¨
template< bool Const > (since C++20)
class /*sentinel*/ (exposition only*)
Okay so hereβs the lore: this is the return type of transform_view::end when the underlying view is not a common_range. Periodt.
The type /*sentinel*/<true> is returned by the const-qualified overload. The type /*sentinel*/<false> is returned by the non-const-qualified overload. Slay.
π MEMBER TYPES π
The member types are exposition-only and private, bestie:
Parent(private) βconst transform_view<V, F>ifConstis true, otherwisetransform_view<V, F>.(exposition-only member type*)Base(private) βconst VifConstis true, otherwiseV.(exposition-only member type*)
π Data members π
Hereβs the member object:
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)
base(C++20) β returns the underlying sentinel (public member function)
π NON-MEMBER FUNCTIONS π
operator==(C++20) β compares a sentinel with an iterator returned fromtransform_view::begin(function)operator-(C++20) β computes the distance between a sentinel and an iterator returned fromtransform_view::begin(function)
Source/version: cppreference.com, dated 2024.06.10 β thatβs the footer, bestie. Now go forth and be iconic πβ¨π¦
π¦ 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