static bool eq_int_type( int_type c1, int_type c2 ); | (until C++11) | |
static constexpr bool eq_int_type( int_type c1, int_type c2 ) noexcept; | (since C++11) |
Checks whether two values of type int_type are equal.
Formally,
a and b such that c1 == X::to_int_type(a) and c2 == X::to_int_type(b), yields the same as X::eq(a,b), c1 and c2 are both copies of X::eof(), yields true, c1 and c2 is a copy of X::eof() and the other is not, yields false, | c1, c2 | - | values to compare |
true if c1 is equal to c2 under the rules described above, false otherwise.
Constant.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/string/char_traits/eq_int_type