Namespaces
Variants

std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
bool operator == ( const regex_iterator & rhs ) const ;
(1) (seit C++11)
bool operator ! = ( const regex_iterator & rhs ) const ;
(2) (seit C++11)
(bis C++20)

Vergleicht zwei regex_iterator s.

Der != -Operator wird synthetisiert aus operator== .

(seit C++20)

Parameter

rhs - ein regex_iterator zum Vergleich

Rückgabewert

Der Anschaulichkeit halber nehmen wir an, dass regex_iterator die folgenden Member enthält:

1) Gibt true zurück, falls * this und rhs beide End-of-Sequence-Iteratoren sind, oder wenn alle folgenden Bedingungen erfüllt sind:
  • begin == rhs. begin
  • end == rhs. end
  • pregex == rhs. pregex
  • flags == rhs. flags
  • match [ 0 ] == rhs. match [ 0 ]
2) Gibt zurück ! ( * this == rhs ) .

Beispiel