std::regex_iterator::operators
STD::regex[医]迭代器::运算符==,运算符%21=
bool operator==(const regex_iterator& rhs) const; | (1) | (since C++11) |
---|---|---|
bool operator!=(const regex_iterator& rhs) const; | (2) | (since C++11) |
比较两regex_iterator
S.
为了说明,假设regex_iterator
包含下列成员:
BidirIt begin
;
BidirIt end
;
const regex_type *pregex;
std::regex_constants::match_flag_type
flags;
- 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。