std::ranges...in_view::end(3)
std::ranges...in_view::end(3) β¨
okay so bestie, this page comes from the C++ Standard Libary manual (yup, that spelling is their vibe π), and weβre talking about the end member of std::ranges::join_view. The header/footer shorten the page name to std::ranges...in_view::end(3), but the actual NAME is right below, no cap.
π NAME π
std::ranges::join_view::end β std::ranges::join_view::end
β¨ Synopsis β¨
Two overloads, both since C++20:
constexpr auto end();
(1) (since C++20)
constexpr auto end() const
requires ranges::input_range<const V> &&
std::is_reference_v<ranges::range_reference_t<const V>>;
(2) (since C++20)
Returns a sentinel or an iterator representing the end of the join_view.
Let base_ be the underlying view:
- 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>>{*this, ranges::end(base_)};
else
return /*sentinel*/<__SimpleView<V>>{*this};
- Equivalent to
if constexpr (ranges::forward_range<const V> &&
std::is_reference_v<ranges::range_reference_t<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 none.
πΈ Return value πΈ
- sentinel which compares equal to the end iterator.
- iterator to the element following the last element.
π¦ Example π¦
This section is incomplete Reason: no example
no example bestie π the page really said βfigure it outβ π
π₯ See also π₯
beginβ returns an iterator to the beginning (public member function, C++20)ranges::endβ returns a sentinel indicating the end of a range (customization point object, C++20)
π Category π
- Todo no example
mwah π source/version: http://cppreference.com, date: 2024.06.10 π«Άπ
π¦ 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