stdchar_traitseqstdchar_traitslt(3)
std::char_traits<CharT>::eq,std::char_traits<CharT>::lt - std::char_traits<CharT>::eq,std::char_traits<CharT>::lt
Synopsis
static bool eq( char_type a, char_type b ); (until C++11)
static constexpr bool eq( char_type a, char_type b ) noexcept; (1) (since C++11)
static bool lt( char_type a, char_type b ); (2) (until C++11)
static constexpr bool lt( char_type a, char_type b ) noexcept; (since C++11)Compares two characters.
- Compares a and b for equality.
- Compares a and b in such a way that they are totally ordered. For the char specialization, eq and lt are defined identically to the built-in operators == and < for type unsigned char (not char). (since C++11)
Parameters
a, b - character values to compare
Return value
- true if a and b are equal, false otherwise.
- true if a is less than b, false otherwise.
Complexity
Constant.