table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::ranges::elements_view::end(3) | C++ Standard Libary | std::ranges::elements_view::end(3) |
NAME¶
std::ranges::elements_view::end - std::ranges::elements_view::end
Synopsis¶
constexpr auto end() requires (!/*simple-view*/<V> && (1) (since C++20) !ranges::common_range<V>); constexpr auto end() requires (!/*simple-view*/<V> && (2) (since C++20) ranges::common_range<V>); constexpr auto end() const requires ranges::range<const V>; (3) (since C++20) constexpr auto end() const requires ranges::common_range<const V>; (4) (since C++20)
Returns a sentinel or an iterator representing the end of the elements_view.
Let base_ be the underlying view. Equivalent to:
1) return /*sentinel*/<false>{ranges::end(base_)};. 2) return /*iterator*/<false>{ranges::end(base_)};. 3) return /*sentinel*/<true>{ranges::end(base_)};. 4) return /*iterator*/<true>{ranges::end(base_)};.
Parameters¶
(none)
Return value¶
1,3) sentinel which compares equal to the end iterator 2,4) iterator to the element following the last element
Notes¶
end() returns an iterator if and only if the underlying view is a common_range: elements_view<V,F> models common_range whenever V does.
Example¶
This section is incomplete
Reason: no example
See also¶
begin returns an iterator to the beginning
(public member function) ranges::end returns a sentinel indicating the
end of a range (C++20) (customization point object)
| 2026.11.10 | http://cppreference.com |