Namespaces
Variants

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

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
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 中存储的任何值等于 - 1 prev - > suffix ( ) . length ( ) 不为 0 ,则该操作符将 *this 设置为指向范围 [ prev - > suffix ( ) . first , prev - > suffix ( ) . second ] 的后缀迭代器。

否则,将 * this 设为序列结束迭代器。

若迭代器为序列末尾迭代器,则行为未定义。

参数

(无)

返回值

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