名前空間
変種
操作

operator==(std::text_encoding)

From cppreference.com
< 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オブジェクトを比較します。オブジェクトが等しいとみなされるのは、a.name()b.name()の比較関数(comp-name (a.name(), b.name()))がtrueを返し、かつ両方のa.mib()b.mib()id::otherに等しい場合、またはa.mib()b.mib()に等しい場合です。
2) text_encodingオブジェクトとMIBenum値を比較します。オブジェクトが等しいとみなされるのは、a.mib()iに等しい場合です。

これらの関数は、通常の非修飾または修飾ルックアップからは見えず、std::text_encodingが引数の関連クラスである場合にのみ、引数依存ルックアップによって見つけることができます。

!= 演算子は operator== から合成される。

目次

[編集] Parameters

a, b - 比較するtext_encodingオブジェクト
i - aに含まれるMIBenum値と比較するid

[編集] Return value

1) a.mib() == id::other && b.mib() == id::other
    ? comp-name (a.name(), b.name())
    : a.mib() == b.mib()
.
2) a.mib() == i.

[編集] Example

[編集] See also

(C++20で削除)
ロケールオブジェクト間の等価比較。
(std::localeのpublicメンバー関数) [編集]
English 日本語 中文(简体) 中文(繁體)