std::ranges...h_view::end(3)
std::ranges...h_view::end(3) β¨
okay bestie, welcome to the C++ Standard Libary manual page for std::ranges::join_with_view::end β yes, the header abbreviates it as std::ranges...h_view::end(3), and itβs section 3. Weβre keeping the manual name exactly as it appears in the header, spelling and all, no cap π
.
π NAME
std::ranges::join_with_view::end - std::ranges::join_with_view::end
(the manual really says it twice; iconic repetition, we respect it π«Ά)
π Synopsis
constexpr auto end();
(1) β since C++23 β¨
constexpr auto end() const
requires ranges::input_range<const V> &&
ranges::forward_range<const Pattern> &&
std::is_reference_v<ranges::range_reference_t<const V>>;
(2) β since C++23 β¨
Okay so what does it do? It returns an iterator or a sentinel that compares equal to the end iterator of the join_with_view. Thatβs the whole vibe, bestie.
Let base_ denote the underlying view:
1) Equivalent to:
if constexpr (ranges::forward_range<V> &&
std::is_reference_v<ranges::range_reference_t<V>> &&
ranges::forward_range<ranges::range_reference_t<V>> &&
ranges::common_range<V> &&
ranges::common_range<ranges::range_reference_t<V>>)
return /*iterator*/<__SimpleView<V> &&
__SimpleView<Pattern>>{*this, ranges::end(base_)};
else
return /*sentinel*/<__SimpleView<V> &&
__SimpleView<Pattern>>{*this};
2) Equivalent to:
if constexpr (ranges::forward_range<const V> &&
ranges::forward_range<ranges::range_reference_t<const V>> &&
ranges::common_range<const V> &&
ranges::common_range<ranges::range_reference_t<const V>>)
return /*iterator*/<true>{*this, ranges::end(base_)};
else
return /*sentinel*/<true>{*this};
ποΈ Parameters
(none) β literally no parameters, bestie, not a single one. clean.
π Return value
An iterator or sentinel representing the end of the join_with_view, as described above. slay.
π§ͺ Example
This section is incomplete. Reason: no example π
(the manual said it, not me β weβre not inventing one either, periodt π)
π 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
(the manual put an asterisk and Todo, so here it is in all its unfinished glory π)
k bye bestie π
β source/version: http://cppreference.com, date: 2024.06.10 (footer title: std::ranges...h_view::end(3)).
π¦ 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