Instantiated member variants
eq/lt
Template: std::char_traits<T>
Specializations:
charwchar_tchar8_tchar16_tchar32_t
Min standard notice:
Compares two characters.
# Declarations
static bool eq( char_type a, char_type b );
(constexpr since C++11)(noexcept since C++11)
static bool lt( char_type a, char_type b );
(constexpr since C++11)(noexcept since C++11)
# Parameters
a, b: character values to compare
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 467 | C++98 | for std::char_traits | changed to built-in == and< on unsigned char |