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) 迭代器的先前值。