std::char_traits::eq, std::char_traits::lt
From cppreference.com
< cpp | string | char traits
bool eq( CharT a, CharT b );
|
(1) | (until C++11) |
constexpr bool eq( CharT a, CharT b );
|
(1) | (since C++11) |
bool lt( CharT a, CharT b );
|
(2) | (until C++11) |
constexpr bool lt( CharT a, CharT b );
|
(2) | (since C++11) |
Compares two characters.
1) Compares
a
and b
for equality.
2) Compares
a
and b
in such a way that they are totally ordered.
Contents |
[edit] Parameters
a, b | - | character values to compare |
[edit] Return value
1) true if
a
and b
are equal, false otherwise.
2) true if
a
is less than b
, false otherwise.[edit] Exceptions
[edit] Complexity
Constant.