[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/string/char_traits/cmp [Back]  [Original]

std::char_traits::eq, std::char_traits::lt cppreference.com
cppreference.com
Espaces de noms
Variantes

std::char_traits::eq, std::char_traits::lt

De cppreference.com

<metanoindex/>

<tbody> </tbody>
bool eq( CharT a, CharT b );
(1) (avant C++11)
constexpr bool eq( CharT a, CharT b );
(1) (depuis C++11)
bool lt( CharT a, CharT b );
(2) (avant C++11)
constexpr bool lt( CharT a, CharT b );
(2) (depuis C++11)
Compare deux caractres .
Original:
Compares two characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Compare a et b pour l'galit .
Original:
Compares a and b for equality.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Compare a et b de telle sorte qu'ils sont totalement ordonn .
Original:
Compares a and b in such a way that they are totally ordered.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramtres

a, b -
les valeurs de caractres comparer
Original:
character values to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

1)
true si a et b sont gaux, false autrement .
Original:
true if a and b are equal, false otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
true si a est moins de b, false autrement .
Original:
true if a is less than b, false otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceptions

noexcept specification:  
<tbody> </tbody>
noexcept
   (depuis C++11)

Complexit

Constant .
Original:
Constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Web Proxy Viewer  |  New URL  |  Original Page