staticbool eq( char_type a, char_type b); | (1) | (constexpr since C++11) (noexcept since C++11) |
staticbool lt( char_type a, char_type b); | (2) | (constexpr since C++11) (noexcept since C++11) |
Compares two characters.
char_type
ischar,char_type
ischar,SeeCharTraits for the general requirements on character traits forX::eq
andX::lt
.
Contents |
a, b | - | character values to compare |
Constant.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 467 | C++98 | forstd::char_traits<char>, the semantics ofeq() andlt() are the same as the built-in== and< onchar respectively[1] | changed to built-in== and < onunsignedchar |