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如果*this和rhs都是序列结束迭代器,或者如果下列所有条件都为真:
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 |
|---|
例
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

