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) (C++11以降)
bool operator ! = ( const regex_token_iterator & other ) const ;
(2) (C++11以降)
(C++20まで)

* this other が等価であるかどうかをチェックします。

2つの正規表現トークンイテレータが等しいのは以下の場合です:

a) これらは両方ともシーケンス終端イテレータです。
b) これらは両方とも接尾辞イテレータであり、接尾辞が等しい。
c) どちらも終端シーケンスまたはサフィックスイテレータではなく、かつ:
  • position == other. position
  • N == other. N
  • subs == other. subs


1) * this 等しいかどうか をチェックします other に対して。
2) * this 等しくないか other をチェックします。

!= 演算子は operator== から合成されます

(C++20以降)

パラメータ

other - 比較対象の別の正規表現トークンイテレータ

戻り値

1) true * this 等しい場合 other false それ以外の場合。
2) true もし * this 等しくない場合 other false を返す。