A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/string/char_traits/lt/ below:

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 Valuetrue if c is considered less than d.

Complexity Constant.

Exception safetyNo-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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4