名前空間
変種
操作

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

提供: cppreference.com
bool operator==(const regex_iterator& rhs) const;
(1) (C++11以上)
bool operator!=(const regex_iterator& rhs) const;
(2) (C++11以上)

2つの regex_iterator を比較します。

説明のために、 regex_iterator が以下のメンバを持つと考えます。

1) *thisrhs がどちらも終端イテレータであれば、または以下の条件がすべて真であれば、 true を返します。
  • begin == rhs.begin
  • end == rhs.end
  • pregex == rhs.pregex
  • flags == rhs.flags
  • match[0] == rhs.match[0]
2) !(*this == rhs) を返します。

[編集] 引数

rhs - 比較する regex_iterator

[編集]