cpp/string/basic string/size : Différence entre versions
De cppreference.com
< cpp | string | basic string
m (r2.7.3) (robot Ajoute : de:cpp/string/basic string/size, en:cpp/string/basic string/size, it:cpp/string/basic string/size) |
m (Use {{lc}}. Update links. Various fixes.) |
||
Ligne 2 : | Ligne 2 : | ||
{{cpp/string/basic_string/title | size | length}} | {{cpp/string/basic_string/title | size | length}} | ||
{{cpp/string/basic_string/navbar}} | {{cpp/string/basic_string/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| |
size_type size() const; | size_type size() const; | ||
}} | }} | ||
− | {{ | + | {{| |
size_type length() const; | size_type length() const; | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|Retourne le nombre de caractères de la chaîne, c'est à dire {{c|std::distance(begin(), end())}} . |Returns the number of characters in the string, i.e. {{c|std::distance(begin(), end())}}. }} | {{tr|Retourne le nombre de caractères de la chaîne, c'est à dire {{c|std::distance(begin(), end())}} . |Returns the number of characters in the string, i.e. {{c|std::distance(begin(), end())}}. }} | ||
Ligne 23 : | Ligne 23 : | ||
===Voir aussi=== | ===Voir aussi=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/string/basic_string/empty}} |
− | {{ | + | {{| cpp/string/basic_string/max_size}} |
− | {{ | + | {{end}} |
[[de:cpp/string/basic string/size]] | [[de:cpp/string/basic string/size]] |
Version actuelle en date du 2 juillet 2013 à 05:47
![]() |
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. |
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.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] 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) | |
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) |