std::regex_iterator<BidirIt,CharT,Traits>::operator==,operator!=
From cppreference.com
< cpp | regex | regex iterator
| 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を比較します。
|
|
(C++20以降) |
[編集] パラメータ
| rhs | - | 比較対象のregex_iterator |
[編集] 戻り値
説明のために、regex_iteratorは以下のメンバーを含むと仮定します。
-
BidirIt begin; -
BidirIt end; - const regex_type *pregex;
- std::regex_constants::match_flag_type flags;
- std::match_results<BidirIt> match;
1) true を返します。もし *this と rhs の両方がシーケンス終端イテレータである場合、または以下のすべての条件が真である場合。
- begin == rhs.begin
- end == rhs.end
- pregex == rhs.pregex
- flags == rhs.flags
- match[0] == rhs.match[0]
2) !(*this == rhs) を返します。
[編集] 例
| このセクションは未完成です 理由: 例がありません |