Namespaces
Variants

std::regex_token_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_token_iterator & other ) const ;
(1) (seit C++11)
bool operator ! = ( const regex_token_iterator & other ) const ;
(2) (seit C++11)
(bis C++20)

Prüft, ob * this und other äquivalent sind.

Zwei Regex-Token-Iteratoren sind gleich, wenn:

a) Sie sind beide End-of-Sequence-Iteratoren.
b) Beide sind Suffix-Iteratoren und die Suffixe sind gleich.
c) Keiner von ihnen ist ein End-of-Sequence- oder Suffix-Iterator und:
  • position == other. position
  • N == other. N
  • subs == other. subs


1) Prüft, ob * this gleich other ist.
2) Prüft, ob * this ungleich other ist.

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

(seit C++20)

Parameter

other - ein weiterer Regex-Token-Iterator zum Vergleich

Rückgabewert

1) true falls * this gleich other ist, false andernfalls.
2) true wenn * this ungleich other ist, false andernfalls.