std::char_traits<char>::eq_int_type, std::char_traits<wchar_t>::eq_int_type, std::char_traits<char8_t>::eq_int_type, std::char_traits<char16_t>::eq_int_type, std::char_traits<char32_t>::eq_int_type
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.
См. CharTraits для общих требований к свойствам символов для X::eq_int_type.
Параметры
| c1, c2 | - | значения для сравнения |
Возвращаемое значение
true если c1 равно c2, false в противном случае.
Сложность
Постоянная.
© 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