operator== (std::text_encoding)
From cppreference.net
<
cpp
|
text
|
text encoding
|
friend
constexpr
bool
operator
==
(
const
text_encoding
&
a,
const text_encoding & b ) noexcept ; |
(1) | (C++26以降) |
|
friend
constexpr
bool
operator
==
(
const
text_encoding
&
a, id i
)
noexcept
;
|
(2) | (C++26以降) |
text_encoding
オブジェクトに対する比較演算を実行します。
1)
2つの
text_encoding
オブジェクトを比較する。両オブジェクトが等しいと評価されるのは、
comp-name
(
a.
name
(
)
, b.
name
(
)
)
が
true
を返し、かつ
a.
mib
(
)
と
b.
mib
(
)
の両方が
id
::
other
に等しい場合、または
a.
mib
(
)
が
b.
mib
(
)
に等しい場合に限る。
2)
text_encoding
オブジェクトをMIBenum値と比較します。オブジェクトは、
a.
mib
(
)
が
i
と等しい場合にのみ等しくなります。
これらの関数は通常の
unqualified lookup
や
qualified lookup
では可視化されず、
argument-dependent lookup
によってのみ、
std::text_encoding
が引数の関連クラスである場合に見つけることができます。
!=
演算子は
synthesized
され、
operator==
から生成されます。
目次 |
パラメータ
| a, b | - |
text_encoding
オブジェクトの比較
|
| i | - |
id
値と
a
に含まれるMIBenum値の比較
|
戻り値
1)
a.
mib
(
)
==
id
::
other
&&
b.
mib
(
)
==
id
::
other
?
comp-name
(
a.
name
(
)
, b.
name
(
)
)
:
a.
mib
(
)
==
b.
mib
(
)
.
2)
a.
mib
(
)
==
i
.
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(removed in C++20)
|
ロケールオブジェクト間の等価比較
(
std::locale
の公開メンバ関数)
|