operator==,!= (std::match_results)
|
定義済みヘッダー
<regex>
|
||
|
template
<
class
BidirIt,
class
Alloc
>
bool
operator
==
(
match_results
<
BidirIt,Alloc
>
&
lhs,
|
(1) | (C++11以降) |
|
template
<
class
BidirIt,
class
Alloc
>
bool
operator
!
=
(
match_results
<
BidirIt,Alloc
>
&
lhs,
|
(2) |
(C++11以降)
(C++20まで) |
2つの
match_results
オブジェクトを比較します。
Two
match_results
は以下の条件を満たす場合に等しい:
- どちらのオブジェクトも ready ではない、 or
- 両方のマッチ結果が ready であり、以下の条件が満たされる場合:
-
- lhs. empty ( ) かつ rhs. empty ( ) 、 または
- ! lhs. empty ( ) かつ ! rhs. empty ( ) であり、以下の条件が満たされる場合:
-
- lhs. prefix ( ) == rhs. prefix ( )
- lhs. size ( ) == rhs. size ( ) && std:: equal ( lhs. begin ( ) , lhs. end ( ) , rhs. begin ( ) )
- lhs. suffix ( ) == rhs. suffix ( )
|
|
(C++20以降) |
目次 |
パラメータ
| lhs, rhs | - | 比較するマッチ結果 |
| 型要件 | ||
-
BidirIt
は
LegacyBidirectionalIterator
の要件を満たさなければならない。
|
||
-
Alloc
は
Allocator
の要件を満たさなければならない。
|
||
戻り値
lhs
と
rhs
が等しい場合は
false
それ以外の場合。
例外
実装定義の例外をスローする可能性があります。
例
|
このセクションは不完全です
理由: 例がありません |