std::regex_iterator::regex_iterator
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。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

