◐ Shell
clean mode source ↗

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

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

size_type size() const;

size_type length() const;

Gibt die Anzahl der Zeichen in der Zeichenkette, dh 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.

Parameter

(None)

Original:

(none)

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

Rückgabewert

Die Anzahl der Zeichen in der Zeichenfolge .

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.

Komplexität

Constant

Original:

Constant

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

Siehe auch

prüft, ob der String leer ist

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.


(öffentliche Elementfunktion) [edit]

gibt die maximale Anzahl von Zeichen

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.


(öffentliche Elementfunktion) [edit]