std::ranges::chunk_view<V>::inner-iterator::operator++
constexpr /*inner-iterator*/& operator++(); | (1) | (since C++23) |
constexpr void operator++( int ); | (2) | (since C++23) |
Увеличивает итератор.
Пусть parent_ — базовый указатель на окружающую chunk_view.
1) Эквивалентно: Перед вызовом этого оператора выражение
++*parent_->current_;
if (*parent_->current_ == ranges::end(parent_->base_))
parent_->remainder_ = 0;
else
--parent_->remainder_;
return *this;*this == std::default_sentinel должно быть false.
2) Эквивалентно
++*this.Параметры
(нет)
Возвращаемое значение
1)
*this
2) (нет)
Пример
См. также
|
(C++23) | вычисляет количество оставшихся блоков (функция) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/chunk_view/inner_iterator/operator_inc