◐ Shell
clean mode source ↗

std::vector::clear - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Consente di rimuovere tutti gli elementi dal contenitore. The allocated memory will not be released, effectively leaving the capacity of the vector unchanged. I past-the-end iteratori non vengono invalidati.

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.

Parametri

(Nessuno)

Original:

(none)

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

Valore di ritorno

(Nessuno)

Original:

(none)

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

Eccezioni

1-3)

Complessità

lineare nella dimensione del contenitore.

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.

Vedi anche

cancella elementi

Original:

erases elements

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


(metodo pubblico) [modifica]