命名空间
变体
操作

std::regex_token_iterator<BidirIt,CharT,Traits>::operator++, operator++(int)

来自 cppreference.cn
 
 
 
正则表达式库
(C++11)
算法
迭代器
异常
特性
常量
(C++11)
正则表达式语法
 
 
regex_token_iterator& operator++();
(自 C++11 起)
regex_token_iterator operator++( int );
(自 C++11 起)

将迭代器前进到下一个子匹配项。

如果 *this 是后缀迭代器,则将 *this 设置为序列末尾迭代器。

否则,如果 N + 1 < subs.size(),则递增 N 并将 result 设置为当前匹配项的地址。

否则,将 N 设置为 0 并递增 position。如果 position 不是序列末尾迭代器,则运算符会将 result 设置为当前匹配项的地址。

否则,如果存储在 subs 中的任何值等于 -1 并且 prev->suffix().length() 不为 0,则运算符会将 *this 设置为指向范围 [prev->suffix().first, prev->suffix().second) 的后缀迭代器。

否则,将 *this 设置为序列末尾迭代器。

如果迭代器是序列末尾迭代器,则行为未定义。

[edit] 参数

(无)

[edit] 返回值

1) *this
2) 迭代器的先前值。