operator+,-(ranges::stride_view::iterator)
friend constexpr /*iterator*/ operator+( const /*iterator*/& i, difference_type n ) |
(1) | (since C++23) |
friend constexpr /*iterator*/ operator+( difference_type n, const /*iterator*/& i ) |
(2) | (since C++23) |
friend constexpr /*iterator*/ operator-( const /*iterator*/& i, difference_type n ) |
(3) | (since C++23) |
friend constexpr difference_type operator-( const /*iterator*/& x, const /*iterator*/& y ) |
(4) | (since C++23) |
friend constexpr difference_type operator-( std::default_sentinel_t, const /*iterator*/& x ) |
(5) | (since C++23) |
friend constexpr difference_type operator-( const /*iterator*/& x, std::default_sentinel_t s ) |
(6) | (since C++23) |
Increments or decrements the iterator.
Let current_
, end_
, stride_
, and missing_
be the data members of the iterator.
N
be x.current_ - y.current_. Returns:
- (N + x.missing_ - y.missing_) / x.stride_, if
Base
modelsforward_range
. - -/*div-ceil*/(-N, x.stride_), if
N < 0
. - /*div-ceil*/(N, x.stride_) otherwise.
These functions are not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when stride_view::iterator<Const>
is an associated class of the arguments.
Parameters
x, y, i | - | the iterators |
s | - | a sentinel |
Return value
Example
This section is incomplete Reason: no example |
See also
advances or decrements the underlying iterator (public member function) |