std::vector::clear — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
Supprime tous les éléments du conteneur. The allocated memory will not be released, effectively leaving the capacity of the vector unchanged. Les itérateurs past-the-end ne sont pas invalidées .
Original:
Removes all elements from the container. The allocated memory will not be released, effectively leaving the capacity of the vector unchanged. The past-the-end iterators are not invalidated.
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
(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.
Exceptions
1-3)
Complexité
linéaire à la taille du récipient .
Original:
linear in the size of the container.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
| efface des éléments (fonction membre publique) [edit] | |