Scroll to navigation

std::ranges::chunk_view::outer-iterator::operator++(3) C++ Standard Libary std::ranges::chunk_view::outer-iterator::operator++(3)

NAME

std::ranges::chunk_view::outer-iterator::operator++ - std::ranges::chunk_view::outer-iterator::operator++

Synopsis


constexpr /*outer-iterator*/& operator++(); (1) (since C++23)
constexpr void operator++( int ); (2) (since C++23)


Increments the iterator.


Let parent_ be the underlying pointer to enclosing chunk_view.


1) Equivalent to:


ranges::advance(*parent_->current_, parent_->remainder_, ranges::end(parent_->base_));
parent_->remainder_ = parent_->n_;
return *this;


Before invocation of this operator the expression *this == std::default_sentinel
must be false.
2) Equivalent to ++*this.

Parameters


(none)

Return value


1) *this
2) (none)

Example


This section is incomplete
Reason: no example

See also


operator- calculates the number of chunks remained
(C++23) (function)

Category:


* Todo no example

2024.06.10 http://cppreference.com