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

std::regex_iterator::operators

bool operator==(const regex_iterator& rhs) const;

(1)

(since C++11)

bool operator!=(const regex_iterator& rhs) const;

(2)

(since C++11)

比较两regex_iteratorS.

为了说明,假设regex_iterator包含下列成员:

  • BidirIt begin
  • BidirIt end
  • const regex_type *pregex;
  • std::regex_constants::match_flag_typeflags;
  • std::match_results<BidirIt> match;

1%29true如果*thisrhs都是序列结束迭代器,或者如果下列所有条件都为真:

  • begin == rhs.begin
  • end == rhs.end
  • pregex == rhs.pregex
  • flags == rhs.flags
  • match[0] == rhs.match[0]

2%29!(*this == rhs)

参数

rhs

-

a regex_iterator to compare to

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

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

扫码关注腾讯云开发者

领取腾讯云代金券