std::ranges::zip_view<뷰...>::iterator<Const>::operator++,--,+=,-=
cppreference.net에서 발췌
constexpr /*iterator*/& operator++();
|
(1) | (C++23부터) |
constexpr void operator++( int );
|
(2) | (C++23부터) |
constexpr /*iterator*/ operator++( int )
requires /*all-forward*/<Const, Views...>;
|
(3) | (C++23부터) |
constexpr /*iterator*/& operator--()
requires /*all-bidirectional*/<Const, Views...>;
|
(4) | (C++23부터) |
constexpr /*iterator*/ operator--( int )
requires /*all-bidirectional*/<Const, Views...>;
|
(5) | (C++23부터) |
constexpr /*iterator*/& operator+=( difference_type n )
requires /*all-random-access*/<Const, Views...>;
|
(6) | (C++23부터) |
constexpr /*iterator*/& operator-=( difference_type n )
requires /*all-random-access*/<Const, Views...>;
|
(7) | (C++23부터) |
내부 is_... 반복자들의 각 요소를 내부적인 튜플 유사 객체에서 증가 또는 감소시킵니다.current_
1) 다음과 동일합니다.
/*tuple-for-each*/([](auto& i) { ++i; }, current_); return *this;2) 다음과 동일합니다
++*this;3) 다음과 동일합니다
auto tmp = *this; ++*this; return tmp;4) 다음과 동일합니다.
/*tuple-for-each*/([](auto& i) { --i; }, current_); return *this;5) 다음과 동일합니다
auto tmp = *this; --*this; return tmp;6) 다음과 동일합니다.
/*tuple-for-each*/([&]<class I>(I& i) { i += iter_difference_t<I>(x); }, current_); return *this;7) 다음과 동일합니다.
/*tuple-for-each*/([&]<class I>(I& i) { i -= iter_difference_t<I>(x); }, current_); return *this;매개변수
| n | - | 현재 위치 기준 상대적 위치 |
반환값
1,4,6,7)
*
this
2)
(없음)
3,5)
변경 전에 생성된
*
this
의 복사본
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |