Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/regex/regex iterator/operator cmp"

From cppreference.com
(use since)
m (r2.7.4) (Robot: Removing de, es, fr, it, ja, pt, ru, zh)
Line 38: Line 38:
 
  | output=
 
  | output=
 
}}
 
}}
 
[[de:cpp/regex/regex iterator/operator comp]]
 
[[es:cpp/regex/regex iterator/operator comp]]
 
[[fr:cpp/regex/regex iterator/operator comp]]
 
[[it:cpp/regex/regex iterator/operator comp]]
 
[[ja:cpp/regex/regex iterator/operator comp]]
 
[[pt:cpp/regex/regex iterator/operator comp]]
 
[[ru:cpp/regex/regex iterator/operator comp]]
 
[[zh:cpp/regex/regex iterator/operator comp]]
 

Revision as of 07:46, 1 August 2013

bool operator==(const regex_iterator& rhs) const;
(1) (since C++11)
bool operator!=(const regex_iterator& rhs) const;
(2) (since C++11)

Compares two regex_iterators.

For the sake of exposition, assume that regex_iterator contains the following members:

1) Returns true if *this and rhs are both end-of-sequence iterators, or if all of the following conditions are true:
  • begin == rhs.begin
  • end == rhs.end
  • pregex == rhs.pregex
  • flags == rhs.flags
  • match[0] == rhs.match[0]
2) Returns !(*this == rhs)

Parameters

rhs - a regex_iterator to compare to

Example