public static member function
<string>

std::char_traits::eq_int_type

static bool eq_int_type (const int_type& x, const int_type& y);
static constexpr bool eq_int_type (int_type x, int_type y) noexcept;
比較 int_type 值
返回xy 是否被認為是相等的。

如果 xy 都表示有效的字元,則該函式返回與 成員 eq 對它們的char_type轉換相同的結果。

此外,如果 xy 都是 eof() 的副本,則該函式返回true。如果只有其中一個是 eof() 的副本,則該函式返回false.

在所有其他情況下,返回的值是不確定的。

引數

x, y
要比較的值。
成員型別int_type是一個整數型別,可以表示 eof() 或任何有效的字元值。

返回值

true如果 x 被認為等於 y

複雜度

常量。

異常安全

無異常保證:此成員函式從不丟擲異常。

另見