std::ranges::concat_view<Views...>:: iterator <Const>:: operator++,--,+=,-=
|
constexpr
/*iterator*/
&
operator
++
(
)
;
|
(1) | (自 C++26 起) |
|
constexpr
void
operator
++
(
int
)
;
|
(2) | (自 C++26 起) |
|
constexpr
/*iterator*/
operator
++
(
int
)
requires /*all-forward*/ < Const, Views... > ; |
(3) | (自 C++26 起) |
|
constexpr
/*iterator*/
&
operator
--
(
)
requires /*concat-is-bidirectional*/ < Const, Views... > ; |
(4) | (自 C++26 起) |
|
constexpr
/*iterator*/
operator
--
(
int
)
requires /*concat-is-bidirectional*/ < Const, Views... > ; |
(5) | (自 C++26 起) |
|
constexpr
/*iterator*/
&
operator
+
=
(
difference_type n
)
requires /*concat-is-random-access*/ < Const, Views... > ; |
(6) | (自 C++26 起) |
|
constexpr
/*iterator*/
&
operator
-
=
(
difference_type n
)
requires /*concat-is-random-access*/ < Const, Views... > ; |
(7) | (自 C++26 起) |
递增或递减 迭代器 。
| 重载 |
等价于
(令 I 为
it_
.
index
(
)
)
|
|---|---|
| (1) |
++
get-iter
<
I
>
(
)
;
satisfy
<
I
>
(
)
;
return
*
this
;
|
| (2) | ++* this ; |
| (3) | auto tmp = * this ; ++* this ; return tmp ; |
| (4) |
prev
<
I
>
(
)
;
return
*
this
;
|
| (5) | auto tmp = * this ; --* this ; return tmp ; |
| (6) |
auto
offset
=
|
| (7) | * this + = - n ; return * this ; |
如果
it_
.
valueless_by_exception
(
)
为
true
,则行为未定义。
参数
| n | - | 相对于当前位置的偏移量 |
返回值
如上所述。
示例
|
本节内容不完整
原因:缺少示例 |