std::ranges::transform_view<V,F>::end
From cppreference.com
< cpp | ranges | transform 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++26)(C++26)
(C++23)(C++23)
(C++26)(C++26)
(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)
std::ranges::transform_view
transform_view::end
(C++26)
constexpr /*sentinel*/<false> end();
(1)
(since C++20)
constexpr /*iterator*/<false> end() requires ranges::common_range <V>;
(2)
(since C++20)
constexpr /*sentinel*/<true> end() const
(3)
(since C++20)
requires ranges::range <const V> &&
constexpr /*iterator*/<true> end() const
(4)
(since C++20)
requires ranges::common_range <const V> &&
Returns a sentinel or an iterator representing the end of the transform_view
.
Equivalent to:
1) return
sentinel
<false>{ranges::end (base_
);.2) return
iterator
<false>{*this, ranges::end (base_
)};.3) return
sentinel
<true>{ranges::end (base_
)};.4) return
iterator
<true>{*this, ranges::end (base_
)};.Contents
[edit] Parameters
(none)
[edit] Return value
1,3) sentinel which compares equal to the end iterator
2,4) iterator to the element following the last element
[edit] Notes
end()
returns an iterator if and only if the underlying view is a common_range
: transform_view<V,F> models common_range
whenever V
does.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example