◐ Shell
clean mode source ↗

std::vector::capacity – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

size_type capacity() const;

Gibt die Anzahl der Elemente, die die Container derzeit Platz für zugeordnet .

Original:

Returns the number of elements that the container has currently allocated space for.

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

Kapazität der derzeit zugewiesenen Speicher

Original:

capacity of the currently allocated storage

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

Ausnahmen

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

liefert die Anzahl der Elemente

Original:

returns the number of elements

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]
reserviert Speicher
(öffentliche Elementfunktion) [edit]