std::char_traits<char>::eq/lt, std::char_traits<wchar_t>::eq/lt, std::char_traits<char8_t>::eq/lt, std::char_traits<char16_t>::eq/lt, std::char_traits<char32_t>::eq/lt
From cppreference.com
< cpp | string | char traits
| static bool eq( char_type a, char_type b ); |
(1) | (constexpr since C++11) (noexcept since C++11) |
| static bool lt( char_type a, char_type b ); |
(2) | (constexpr since C++11) (noexcept since C++11) |
Compares two characters.
1) Compares a and b for equality, behaves identically to
- static_cast<unsigned char>(a) == static_cast<unsigned char>(b), if
char_typeis char, - a == b otherwise.
2) Compares a and b in such a way that they are totally ordered, behaves identically to
- static_cast<unsigned char>(a) < static_cast<unsigned char>(b), if
char_typeis char, - a < b otherwise.
See