std::char_traits::eq, std::char_traits::lt
Da cppreference.com
< cpp | string | char traits
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
bool eq( CharT a, CharT b ); |
(1) | (até C++11) |
constexpr bool eq( CharT a, CharT b ); |
(1) | (desde C++11) |
bool lt( CharT a, CharT b ); |
(2) | (até C++11) |
constexpr bool lt( CharT a, CharT b ); |
(2) | (desde C++11) |
Compara dois personagens.
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Compara
a
e b
pela igualdade.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.
You can help to correct and verify the translation. Click here for instructions.
2)
Compara
a
b
e de tal modo que eles são totalmente ordenada.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.
You can help to correct and verify the translation. Click here for instructions.
Índice |
[editar] Parâmetros
a, b | - | valores de caracteres para comparar
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. |
[editar] Valor de retorno
1)
true se
a
e b
são iguais, caso contrário false.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.
You can help to correct and verify the translation. Click here for instructions.
2)
true se
a
é menos que b
, false outra forma.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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Exceções
[editar] Complexidade
Constante.
Original:
Constant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.