std::ranges...nt_view::end(3)
πΈ NAME πΈ
std::ranges::adjacent_view::end β std::ranges::adjacent_view::end
okay so bestie, this is the std::ranges::adjacent_view::end page from the C++ Standard Libary manual, and it's <highkey>giving βend of the viewβ realness</highkey>. We're gonna get you comfy with it, no cap. π
π« Synopsis π«
constexpr auto end() requires (!__SimpleView<V>); (1)
since C++23
constexpr auto end() const requires ranges::range<const V>; (2)
since C++23
Returns an iterator or a sentinel representing the end of the adjacent_view.
Let base_ be the underlying view.
- Equivalent to:
if constexpr (ranges::common_range<V>)
return /*iterator*/<false>(__as_sentinel{}, ranges::begin(base_),
ranges::end(base_));
else
return /*sentinel*/<false>(ranges::end(base_));
- Equivalent to:
if constexpr (ranges::common_range<const V>)
return /*iterator*/<true>(__as_sentinel{}, ranges::begin(base_),
ranges::end(base_));
else
return /*sentinel*/<true>(ranges::end(base_));
π§ Parameters π§
(none) β literally no parameters, bestie. Clean. β¨
π 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. That's the whole tea. π«
π Notes π
ranges::adjacent_view<V,N> models common_range whenever the underlying view V does. iykyk π
π Example π
This section is incomplete.
Reason: no example
bestie, they really left us hanging on this one π
π 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
and that's the whole page, bestie π β footer tea: std::ranges...nt_view::end(3), source http://cppreference.com, dated 2024.06.10. byeee π«Άβ¨
π¦ 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