命名空间
变体
操作

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 递增并将结果设置为当前匹配的地址。

否则,将 `N` 设置为 0 并递增 `position`。如果 `position` 不是序列末尾迭代器,则操作符将结果设置为当前匹配的地址。

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

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

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

[编辑] 参数

(无)

[编辑] 返回值

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