std::ranges::chunk_view<V>::inner-iterator::operator++
constexpr /*inner-iterator*/& operator++(); | (1) | (с C++23) |
constexpr void operator++( int ); | (2) | (с 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/cpp/ranges/chunk_view/inner_iterator/operator_inc