Namespaces
Variants

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

From ja.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) (C++11以降)
bool operator ! = ( const regex_iterator & rhs ) const ;
(2) (C++11以降)
(C++20まで)

2つの regex_iterator を比較します。

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

(C++20以降)

パラメータ

rhs - 比較対象の regex_iterator

戻り値

説明の便宜上、 regex_iterator が以下のメンバーを含むと仮定します:

1) true を返す条件: * this と rhs が両方ともシーケンス終端イテレータである場合、または以下の条件が全て満たされる場合:
  • begin == rhs. begin
  • end == rhs. end
  • pregex == rhs. pregex
  • flags == rhs. flags
  • match [ 0 ] == rhs. match [ 0 ]
2) 戻り値 ! ( * this == rhs ) .

例