std::ranges::iota_view<W, Bound>:: end
From cppreference.net
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::iota_view
|
constexpr
auto
end
(
)
const
;
|
(1) | (C++20 이후) |
|
constexpr
/*iterator*/
end
(
)
const
requires
std::
same_as
<
W, Bound
>
;
|
(2) | (C++20 이후) |
1)
센티넬 값을 나타내는
sentinel
을 획득합니다:
-
만약
Bound가 std::unreachable_sentinel_t 라면, std:: unreachable_sentinel 를 반환합니다. -
그렇지 않으면,
sentinel {bound_ } 를 반환합니다.
2)
센티널 값에 대한
iterator
를 획득합니다.
반환값
1)
위에서 명시된 대로.
예제
이 코드 실행
#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'; }
출력:
2 3 4 5