public static member function
<string>
static bool lt (const char_type& c, const char_type& d);
static constexpr bool lt (char_type c, char_type d) noexcept;
Compare characters for inequality
Returns whether character c is considered less than character d (i.e., whether c goes before d when ordered).
In the standard specializations of
char_traits, this function behaves as the built-in
operator<.
In the standard specializations of
char_traits, this function behaves as the built-in
operator< for type
unsigned char.
Parameters
- c, d
- Character values.
Member type char_type is the character type (i.e., the class template parameter in char_traits).
Return Value
true if c is considered less than d.
Exception safety
No-throw guarantee: this member function never throws exceptions in any of the standard specializations.
See also
- char_traits::eq
- Compare characters for equality (public static member function)
- char_traits::compare
- Compare sequences of characters (public static member function)
- less
- Function object class for less-than inequality comparison (class template)