operator+,- (ranges::cartesian_product_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*/
&
i,
const
/*iterator*/
&
j
)
|
(4) | (since C++23) |
friend
constexpr
difference_type operator
-
(
const
/*iterator*/
&
i,
std::
default_sentinel_t
)
|
(5) | (since C++23) |
friend
constexpr
difference_type operator
-
(
std::
default_sentinel_t
s,
const
/*iterator*/
&
i
)
|
(6) | (since C++23) |
Performs iterator arithmetic or calculates the distance.
Let
current_
denote the underlying tuple of iterators and
parent_
denote the underlying pointer to
cartesian_product_view
.
distance_from
(
j.
current_
)
;
.
- std :: get < 0 > ( /*end-tuple*/ ) has the same value as ranges:: end ( std :: get < 0 > ( i. parent_ - > bases_ ) ) ;
- std :: get < N > ( /*end-tuple*/ ) has the same value as ranges:: begin ( std :: get < N > ( i. parent_ - > bases_ ) ) for every integer 1 ≤ N ≤ sizeof... ( Vs ) .
distance_from
(
/*end-tuple*/
)
;
.
These functions are not visible to ordinary
unqualified
or
qualified lookup
, and can only be found by
argument-dependent lookup
when
cartesian_product_view::
iterator
<Const>
is an associated class of the arguments.
Parameters
i, j | - | the iterators |
n | - | the position relative to current location |
s | - | the sentinel |
Return value
Example
This section is incomplete
Reason: no example |
See also
advances or decrements the underlying iterator
(public member function) |