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 並設置結果為當前匹配的地址。

否則,設置 N0 並自增 position。若 position 不是序列尾迭代器,則運算符將結果設置為當前匹配的地址。

否則,若存儲於 subs 中的任何值等於 -1prev->suffix().length()0,則運算符設置 *this 為指向範圍 [prev->suffix().first, prev->suffix().second) 的後綴迭代器。

否則,設置 *this 為序列尾迭代器。

若迭代器是序列尾迭代器則行為未定義。

[編輯] 參數

(無)

[編輯] 返回值

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