std::ranges::join_with_view<V,Pattern>::end
From cppreference.com
< cpp | ranges | join with view
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
std::ranges::join_with_view
join_with_view::end
constexpr auto end();
(1)
(since C++23)
constexpr auto end() const
(2)
(since C++23)
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>,
Returns an iterator or a sentinel that compares equal to the past-the-end iterator of the join_with_view
.
1) Returns a mutable iterator/sentinel or const iterator/sentinel.
- If all following conditions are satisfied, returns an iterator:
-
V
modelsforward_range
andcommon_range
. - std::is_reference_v <
InnerRng
> is true. -
InnerRng
modelsforward_range
andcommon_range
.
-
- Otherwise, returns a sentinel.
2) Returns a const iterator/sentinel.
- If all following conditions are satisfied, returns an iterator:
- const V models
common_range
. - ranges::range_reference_t <const V> models
forward_range
andcommon_range
.
- const V models
- Otherwise, returns a sentinel.
For the definition of /*concatable*/, see std::ranges::concat_view.
[edit] Return value
Overload | Return value | |
---|---|---|
Iterator | Sentinel | |
(1) | iterator <simple-view <V> && simple-view <Pattern>> {*this, ranges::end (base_ )}
|
sentinel <simple-view <V> && simple-view <Pattern>> {*this}
|
(2) | iterator <true>{*this, ranges::end (base_ )}
|
sentinel <true>{*this}
|
[edit] Example
This section is incomplete
Reason: no example
Reason: no example