std::regex_token_iterator<BidirIt,CharT,Traits>::operator++, operator++(int)
出自cppreference.com
< cpp | regex | regex token iterator
regex_token_iterator& operator++(); |
(C++11 起) | |
regex_token_iterator operator++( int ); |
(C++11 起) | |
令迭代器前進到下個子匹配。
本節未完成 原因:更好的解釋。例如, subs 為僅用於闡釋的匹配子表達式的向量。 |
若 *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) 迭代器的先前值。