std::ranges::join_with_view<V,Pattern>::end
constexpr auto end(); | (1) | (since C++23) |
constexpr auto end() const
requires ranges::forward_range<const V> &&
ranges::forward_range<const Pattern> &&
std::is_reference_v<ranges::range_reference_t<const V>>> &&
ranges::input_range<ranges::range_reference_t<const V>> &&
/*concatable*/<ranges::range_reference_t<const V>,
const Pattern>;
| (2) | (since C++23) |
Returns an iterator or a sentinel that compares equal to the past-the-end iterator of the join_with_view.
- If all following conditions are satisfied, returns an iterator:
-
Vmodelsforward_rangeandcommon_range. -
std::is_reference_v<InnerRng >istrue. -
InnerRngmodelsforward_rangeandcommon_range. - Otherwise, returns a sentinel.
- If all following conditions are satisfied, returns an iterator:
-
constV models
common_range. -
ranges::range_reference_t<constV> models
forward_rangeandcommon_range. - Otherwise, returns a sentinel.
For the definition of /*concatable*/, see
std::ranges::concat_view.Return value
| Overload | Return value | |
|---|---|---|
| Iterator | Sentinel | |
| (1) |
iterator <simple-view <V>&& | sentinel <simple-view <V>&& |
| (2) | iterator <true>{*this,ranges::end(base_)} |
sentinel <true>{*this} |
Example
See also
| returns an iterator to the beginning (public member function) |
|
|
(C++20) | returns a sentinel indicating the end of a range (customization point object) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/join_with_view/end