Espaços nominais
Variantes
Acções

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

Da cppreference.com
< cpp‎ | string‎ | char traits

 
 
Biblioteca cordas
Strings terminadas
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Cadeias de bytes
Multibyte cordas
Cordas de largura
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::char_traits
Funções de membro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
char_traits::assign
char_traits::cmp
char_traits::move
char_traits::copy
char_traits::compare
char_traits::length
char_traits::find
char_traits::to_char_type
char_traits::to_int_type
char_traits::eq_int_type
char_traits::eof
char_traits::not_eof
 
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.
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.
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.

Í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.
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.

[editar] Exceções

noexcept specification:  
noexcept
  (desde C++11)

[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.