◐ Shell
clean mode source ↗

std::basic_string::size, std::basic_string::length — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

size_type size() const;

size_type length() const;

Retourne le nombre de caractères de la chaîne, c'est à dire std::distance(begin(), end()) .

Original:

Returns the number of characters in the string, i.e. std::distance(begin(), end()).

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

Paramètres

(Aucun)

Original:

(none)

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

Le nombre de caractères dans la chaîne .

Original:

The number of characters in the string.

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

Complexité

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.

Voir aussi

vérifie si la chaîne est vide

Original:

checks whether the string is empty

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


(fonction membre publique) [edit]

retourne le nombre maximal de caractères

Original:

returns the maximum number of characters

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


(fonction membre publique) [edit]