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).

char_traits 的標準特化中,此函式的行為與內建的行為相同operator<.
char_traits 的標準特化中,此函式的行為與內建的行為相同operator<for typeunsigned char.

引數

c, d
Character values.
成員型別char_type字元型別(即,char_traits 中的類模板引數)。

返回值

trueif c is considered less than d.

複雜度

常量。

異常安全

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

另見