public static member function
<string>

std::char_traits::lt

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.

Complexity

Constant.

Exception safety

No-throw guarantee: this member function never throws exceptions in any of the standard specializations.

See also