std::ranges::chunk_by_view<V,Pred>::iterator::operator++,--
cppreference.net에서
constexpr /*iterator*/& operator++();
|
(1) | (C++23부터) |
constexpr /*iterator*/ operator++(int);
|
(2) | (C++23부터) |
constexpr /*iterator*/& operator--() requires ranges::bidirectional_range<V>;
|
(3) | (C++23부터) |
constexpr /*iterator*/ operator--(int) requires ranges::bidirectional_range<V>;
|
(4) | (C++23부터) |
반복자를 증가시키거나 감소시킵니다. iterator
parent_,current_, 및
next_을 iterator의 적절한 기본(설명 전용) 데이터 멤버라고 합시다.
find_next와 find_prev를 ranges::chunk_by_view의 적절한(설명 전용) 멤버 함수라고 합시다.
1) 다음과 동등합니다:
current_ = next_;
next_ = parent_->/*find-next*/(current_);
return *this;
2) 다음과 동등합니다:
auto tmp = *this; ++*this; return tmp;3) 다음과 동등합니다:
next_ = current_;
current_ = parent_->/*find-prev*/(next_);
return *this;
4) 다음과 동등합니다:
auto tmp = *this; --*this; return tmp;매개변수
(없음)
반환값
1,3)
*
this
2,4)
변경 전에 생성된
*
this
의 사본.