(1) | ||
static bool eq( char_type a, char_type b ); | (until C++11) | |
static constexpr bool eq( char_type a, char_type b ); | (since C++11) | |
(2) | ||
static bool lt( char_type a, char_type b ); | (until C++11) | |
static constexpr bool lt( char_type a, char_type b ); | (since C++11) |
Compares two characters.
a
and b
for equality.a
and b
in such a way that they are totally ordered. For the | (since C++11) |
a, b | - | character values to compare |
true
if a
and b
are equal, false
otherwise.true
if a
is less than b
, false
otherwise.(none) | (until C++11) |
noexcept specification: noexcept | (since C++11) |
Constant.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/string/char_traits/cmp