std::regex_iterator<BidirIt,CharT,Traits>::operator==,operator!=
提供: 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以上) |
2つの 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) *this と
rhs
がどちらも終端イテレータであれば、または以下の条件がすべて真であれば、 true を返します。
- begin == rhs.begin
- end == rhs.end
- pregex == rhs.pregex
- flags == rhs.flags
- match[0] == rhs.match[0]
2) !(*this == rhs) を返します。
[編集] 引数
rhs | - | 比較する regex_iterator
|
[編集] 例
This section is incomplete Reason: no example |