std::ranges::elements_view<V,F>::iterator<Const>::operator++,--,+=,-=
cppreference.net에서
constexpr /*iterator*/& operator++();
|
(1) | (C++20부터) |
constexpr void operator++( int );
|
(2) | (C++20부터) |
constexpr /*iterator*/ operator++( int )
requires ranges::forward_range<Base>;
|
(3) | (C++20부터) |
constexpr /*iterator*/& operator--()
requires ranges::bidirectional_range<Base>;
|
(4) | (C++20부터) |
constexpr /*iterator*/ operator--( int )
requires ranges::bidirectional_range<Base>;
|
(5) | (C++20부터) |
constexpr /*iterator*/& operator+=( difference_type n )
requires ranges::random_access_range<Base>;
|
(6) | (C++20부터) |
constexpr /*iterator*/& operator-=( difference_type n )
requires ranges::random_access_range<Base>;
|
(7) | (C++20부터) |
반복자를 증가시키거나 감소시킵니다.
current_을 기본 반복자로 둡니다.
1) 다음과 동일:
++current_; return *this;2) 다음과 동일:
++current_;3) 다음과 동일:
auto tmp = *this; ++*this; return tmp;4) 다음과 동일:
--current_; return *this;5) 다음과 동일:
auto tmp = *this; --*this; return tmp;6) 다음과 동일:
current_ += n; return *this;7) 다음과 동일:
current_ -= n; return *this;매개변수
| n | - | 현재 위치 기준 상대적 위치 |
반환값
1,4,6,7)
*
this
2)
(없음)
3,5)
변경 전에 생성된
*
this
의 복사본