std::ranges::chunk_by_view<V,Pred>::iterator::operator++,--
Из ru.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) |
Увеличивает или уменьшает итератор.
Пусть
parent_,
current_ и
next_ являются соответствующими внутренними (только для описания) членами-данными итератора.
Пусть 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
созданная до изменения.