operator+,- (ranges::slide_view:: iterator )
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
| Member functions | ||||
|
(C++26)
|
||||
| Deduction guides | ||||
| Iterator | ||||
| Member functions | ||||
| Non-member functions | ||||
|
operator+
(slide_view::
iterator
)
operator- (slide_view:: iterator ) |
||||
| Sentinel | ||||
| Member functions | ||||
| Non-member functions | ||||
|
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*/
&
i,
const
/*iterator*/
&
j
)
|
(4) | (since C++23) |
Performs iterator arithmetic.
current_
and
last_ele_
be the underlying iterators to the begin and end of the sliding window, respectively. Equivalent to:
-
return
x.
last_ele_
-
y.
last_ele_
;
, if
last_ele_is present. Otherwise, - return x. current_ - y. current_ ; .
These functions are not visible to ordinary
unqualified
or
qualified lookup
, and can only be found by
argument-dependent lookup
when
slide_view::
iterator
<Const>
is an associated class of the arguments.
Contents |
Parameters
| i, j | - | the iterators |
| n | - | position relative to current location |
Return value
Example
|
This section is incomplete
Reason: no example |
See also
|
advances or decrements the underlying iterators
(public member function) |