std::ranges::chunk_view<V>:: iterator <Const>:: iterator
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
| Member functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(C++26)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
/*iterator*/
(
)
=
default
;
|
(1) | (自 C++23 起) |
|
constexpr
/*iterator*/
(
/*iterator*/
<
!
Const
>
i
)
requires
|
(2) | (自 C++23 起) |
|
private
:
constexpr
/*iterator*/
(
Parent
*
parent,
|
(3) | ( 仅用于说明* ) |
构造一个迭代器。
-
使用
ranges::
iterator_t
<
Base
>
(
)
初始化
current_, -
使用
ranges::
sentinel_t
<
Base
>
(
)
初始化
end_, -
使用
0
初始化
n_, -
使用
0
初始化
missing_。
-
current_初始化为 std :: move ( i. current_ ) , -
end_初始化为 std :: move ( i. end_ ) , -
n_初始化为 i. n_ , -
missing_初始化为 i. missing_ 。
-
使用
current
初始化
current_, -
使用
ranges::
end
(
parent
-
>
base_
)
初始化
end_, -
使用
parent
-
>
n_
初始化
n_, -
使用
missing
初始化
missing_。
参数
| i | - | 一个 /*iterator*/ < false > |
| parent | - |
指向所属
chunk_view
的指针
|
| current | - | 指向当前块起始位置的迭代器 |
| missing | - |
预期(
n_
)与当前块实际大小之间的差值
|
示例
|
本节内容不完整
原因:缺少示例 |