◐ Shell
clean mode source ↗

std::char_traits::compare - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

int compare( const CharT* lhs, const CharT* rhs, std::size_t count );

Confronta i personaggi count primi le stringhe di caratteri e lhs rhs. Il confronto è fatto lessicografico.

Original:

Compares the first count characters of the character strings lhs and rhs. The comparison is done lexicographically.

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

Parametri

lhs, rhs -

puntatori a stringhe di caratteri da confrontare

Original:

pointers to character strings to compare

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

count -

il numero di caratteri da confrontare per ogni stringa di caratteri

Original:

the number of characters to compare from each character string

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

Valore di ritorno

Valore negativo se lhs è meno rhs.

Original:

Negative value if lhs is less than rhs.

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

0 se lhs è pari a rhs.

Original:

0 if lhs is equal to rhs.

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

Valore positivo se lhs è superiore rhs.

Original:

Positive value if lhs is greater than rhs.

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

Eccezioni

(Nessuno)

Original:

(none)

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

Complessità

Lineare.

Original:

Linear.

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