On this page
std::regex_iterator<BidirIt,CharT,Traits>::operator==,operator!=
|
(1) | (since C++11) |
|
(2) | (since C++11) (until C++20) |
Compares two regex_iterators.
The |
(since C++20) |
Parameters
| rhs | - | a regex_iterator to compare to |
Return value
For the sake of exposition, assume that regex_iterator contains the following members:
BidirIt begin;BidirIt end;const regex_type *pregex;std::regex_constants::match_flag_type flags;std::match_results<BidirIt> match;
true if *this and rhs are both end-of-sequence iterators, or if all of the following conditions are true:
begin == rhs.beginend == rhs.endpregex == rhs.pregexflags == rhs.flagsmatch[0] == rhs.match[0]
2) Returns
!(*this == rhs).
Example
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/regex/regex_iterator/operator_cmp