std::regex_iterator::regex_iterator
STD::regex[医]迭代器::regex[医]迭代器
regex_iterator( | (1) | (since C++11) |
---|---|---|
regex_iterator(BidirIt a, BidirIt b, const regex_type& re, std::regex_constants::match_flag_type m = std::regex_constants::match_default | (2) | (since C++11) |
regex_iterator(const regex_iterator& | (3) | (since C++11) |
regex_iterator(BidirIt, BidirIt, const regex_type&&, std::regex_constants::match_flag_type = std::regex_constants::match_default) = delete; | (4) | (since C++14) |
构造一个新的regex_iterator
*
1%29默认构造函数。构造一个序列结束迭代器。
2%29构造一个regex_iterator
从字符序列[a, b)
,正则表达式re
,还有一面旗帜m
规范匹配行为。此构造函数执行对std::regex_search
用这些数据。如果这个初始调用的结果是false
,,,*this
设置为序列结束迭代器。
3%29份regex_iterator
...
4%29不允许用临时正则表达式调用重载2,因为返回的迭代器将立即失效。
参数
a | - | BidirIt to the beginning of the target character sequence |
---|---|---|
b | - | BidirIt to the end of the targe character sequence |
re | - | regular expression used to search the target character sequence |
m | - | flags that govern the behavior of re |
例
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/regex/regex[医]迭代器/正则表达式[医]迭代器