std::ranges...rm_view::end(3)
π std::ranges::adjacent_transform_view::end π
okay bestie, welcome to the manual page for std::ranges...rm_view::end(3) from the C++ Standard Libary (yes, that spelling is literally whatβs up top, not me π). Itβs the end member of std::ranges::adjacent_transform_view, and itβs giving C++23 main character energy β¨.
πΈ NAME πΈ
std::ranges::adjacent_transform_view::end β std::ranges::adjacent_transform_view::end
β¨ Synopsis β¨
constexpr auto end(); (1)
(since C++23)
constexpr auto end() const
requires ranges::range<const InnerView> && (2)
(since C++23)
std::regular_invocable<const F&,
__REPEAT(ranges::range_reference_t<const V>, N)...>;
Returns an iterator or a sentinel representing the end of the adjacent_transform_view π«Ά.
Let inner_ be the underlying ranges::adjacent_view π
.
- Equivalent to:
if constexpr (ranges::common_range<InnerView>)
return /*iterator*/<false>(*this, inner_.end());
else
return /*sentinel*/<false>(inner_.end());
- Equivalent to:
if constexpr (ranges::common_range<const InnerView>)
return /*iterator*/<true>(*this, inner_.end());
else
return /*sentinel*/<true>(inner_.end());
π Parameters π
None. Zero. Nada. The manpage literally says (none) ππ
.
π¦ Return value π¦
An iterator to the element following the last element, if the underlying view V models common_range. Otherwise, a sentinel which compares equal to the end iterator. No cap β¨.
π Notes π
adjacent_transform_view<V,F,N> models common_range whenever the underlying view V does. slay π.
π Example π
This section is incomplete Reason: no example
no example bestie, weβre just vibing with the incomplete notice π.
π See also π
beginβ returns an iterator to the beginning (C++23) (public member function)ranges::endβ returns a sentinel indicating the end of a range (C++20) (customization point object)
π« Category π«
- Todo no example
β¨ source/version/date vibes: http://cppreference.com Β· 2024.06.10 Β· manual page std::ranges...rm_view::end(3) β bye bestie, mwah πβ¨
π¦ 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