名前空間
変種

std::char_traits<CharT>::eq_int_type

提供: cppreference.com
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
static bool eq_int_type( int_type c1, int_type c2 );
(C++11未満)
static constexpr bool eq_int_type( int_type c1, int_type c2 ) noexcept;
(C++11以上)

int_type 型の2つの値が等しいかどうか調べます。

形式的には、

  • c1 == X::to_int_type(a) かつ c2 == X::to_int_type(b) であるような値 a および b が存在する場合に X::eq(a,b) と同じ値を返します。
  • そうでなく、 c1c2 の両方が X::eof() のコピーであれば、 true を返します。
  • そうでなく、 c1c2 の一方が X::eof() のコピーであり、他方がそうでなければ、 false を返します。
  • そうでなければ、結果は未規定です。

引数

c1, c2 - 比較する値

戻り値

上で説明したルールの下で c1c2 と等しければ true、そうでなければ false

計算量

一定。