std::ranges::iota_view<W, Bound>::end
From cppreference.com
 
 
 
 
 
 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::iota_view 
 
iota_view::end
constexpr auto end() const;
 (1) 
 (since C++20) 
constexpr /*iterator*/ end() const requires std::same_as <W, Bound>;
 (2) 
 (since C++20) 
1) Obtains a sentinel representing the sentinel value:
-  If 
Boundis std::unreachable_sentinel_t , returns std::unreachable_sentinel . -  Otherwise, returns 
sentinel{bound_}. 
2) Obtains an iterator to the sentinel value.
[edit] Return value
1) As specified above.
[edit] Example
Run this code
#include <iostream> #include <ranges> int main() { auto iota{std::views::iota (2, 6)}; auto end{iota.end()}; for (auto iter{iota.begin()}; iter != end; ++iter) std::cout << *iter << ' '; std::cout << '\n'; }
Output:
2 3 4 5