std::regex_iterator<BidirIt,CharT,Traits>:: operator==,operator!=
From ja.cppreference.net
<
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
)
.
例
|
このセクションは不完全です
理由: 例がありません |