std::ranges::chunk_by_view<V,Pred>::iterator::operator++,--
Von de.cppreference.net
constexpr /*iterator*/& operator++();
|
(1) | (seit C++23) |
constexpr /*iterator*/ operator++(int);
|
(2) | (seit C++23) |
constexpr /*iterator*/& operator--() requires ranges::bidirectional_range<V>;
|
(3) | (seit C++23) |
constexpr /*iterator*/ operator--(int) requires ranges::bidirectional_range<V>;
|
(4) | (seit C++23) |
Erhöht oder verringert den Iterator.
Seien
parent_,
current_, und
next_ die entsprechenden zugrunde liegenden (nur zur Darstellung) Datenmember von Iterator.
Seien find-next und find-prev die entsprechenden (nur zur Darstellung) Mitgliedsfunktionen von ranges::chunk_by_view.
1) Entspricht:
current_ = next_;
next_ = parent_->/*find-next*/(current_);
return *this;
2) Entspricht:
auto tmp = *this; ++*this; return tmp;3) Entspricht:
next_ = current_;
current_ = parent_->/*find-prev*/(next_);
return *this;
4) Entspricht:
auto tmp = *this; --*this; return tmp;Parameter
(keine)
Rückgabewert
1,3)
*
this
2,4)
eine Kopie von
*
this
die vor der Änderung erstellt wurde.