Namespaces
Variants

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

위키백과: ko.cppreference.net
 
 
Ranges 라이브러리
Range 어댑터
 
 
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
3,5) 변경 전에 생성된 * this 의 복사본