Namespaces
Variants

std::ranges::chunk_by_view<V,Pred>::iterator::operator++,--

ja.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;
この演算子の呼び出しの前に、current_がnext_と等しい場合、動作は未定義です。
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 のコピー。