名稱空間
變體
操作

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

來自 cppreference.com
 
 
 
正則表示式庫
(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) 迭代器的先前值。