Namespaces
Variants

std::ranges::enumerate_view<V>::iterator<Const>::operator++,--,+=,-=

cppreference.net에서 가져옴
 
 
Ranges 라이브러리
Range 어댑터
 
 
constexpr /*iterator*/& operator++();
(1) (C++23부터)
constexpr void operator++( int );
(2) (C++23부터)
constexpr /*iterator*/ operator++( int )
    requires ranges::forward_range<Base>;
(3) (C++23부터)
constexpr /*iterator*/& operator--()
    requires ranges::bidirectional_range<Base>;
(4) (C++23부터)
constexpr /*iterator*/ operator--( int )
    requires ranges::bidirectional_range<Base>;
(5) (C++23부터)
constexpr /*iterator*/& operator+=( difference_type n )
    requires ranges::random_access_range<Base>;
(6) (C++23부터)
constexpr /*iterator*/& operator-=( difference_type n )
    requires ranges::random_access_range<Base>;
(7) (C++23부터)

iterator를 증가시키거나 감소시킵니다.

current_를 기본 반복자로 하고 pos_를 기본 인덱스로 둡니다.

1) ++current_; ++pos_; return *this;
과 동일합니다.2)++current_;
과 동일합니다.auto tmp = *this; ++*this; return tmp;
3) --current_; --pos_; return *this;
과 동일합니다.4)auto tmp = *this; --*this; return tmp;
과 동일합니다.current_ += n; pos_ += n; return *this;
5) current_ -= n; pos_ -= n; return *this;
과 동일합니다.

매개변수

n - 현재 위치 기준 상대적 위치

반환값

1,4,6,7) * this
2) (없음)
3,5) 변경 전에 생성된 * this 의 복사본

참고 항목

반복자 연산 수행
(함수)