首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com