Instantiated member variants

eq/lt

Template: std::char_traits<T>

Specializations:
  • char
  • wchar_t
  • char8_t
  • char16_t
  • char32_t

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

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 467C++98for std::char_traits, the semantics of eq() and lt()are the same as the built-in == and < on char respectively[1]changed to built-in == and< on unsigned char