◐ Shell
clean mode source ↗

std::vector::capacity — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

size_type capacity() const;

Retourne le nombre d'éléments que le conteneur a actuellement affectés espace pour .

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.

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

la capacité de la mémoire actuellement allouée

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.

Exceptions

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

retourne le nombre d'éléments

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.


(fonction membre publique) [edit]
réserve de l'espace mémoire
(fonction membre publique) [edit]