std::regex_token_iterator<BidirIt,CharT,Traits>:: operator++, operator++ (int)
|
regex_token_iterator
&
operator
++
(
)
;
|
(自 C++11 起) | |
|
regex_token_iterator operator
++
(
int
)
;
|
(自 C++11 起) | |
将迭代器推进到下一个子匹配项。
|
此章节内容不完整
原因:需要更清晰的解释。例如,
subs
是一个仅用于说明的匹配子表达式向量。
|
如果 * this 是后缀迭代器,将 * this 设为序列结束迭代器。
否则,如果 N + 1 < subs. size ( ) ,则递增 N 并将结果设置为当前匹配项的地址。
否则,将
N
设为
0
并递增
position
。若
position
不是序列结束迭代器,本操作符会将结果设置为当前匹配项的地址。
否则,如果 subs 中存储的任何值等于
-
1
且
prev
-
>
suffix
(
)
.
length
(
)
不为
0
,则该操作符将
*this
设置为指向范围 [
prev
-
>
suffix
(
)
.
first
,
prev
-
>
suffix
(
)
.
second
] 的后缀迭代器。
否则,将 * this 设为序列结束迭代器。
若迭代器为序列末尾迭代器,则行为未定义。
参数
(无)