◐ Shell
clean mode source ↗

std::basic_string::reserve - 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>

void reserve( size_type size );

Imposta la capacità della stringa di almeno size. Nuovo deposito viene assegnato, se necessario.

Original:

Sets the capacity of the string to at least size. New storage is allocated if necessary.

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

Parametri

size -

nuova capacità della stringa

Original:

new capacity of the string

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.

Complessità

lineare nella dimensione della stringa

Original:

linear in the size of the string

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

Vedi anche

restituisce il numero di caratteri che la memoria ora allocata può contenere
(metodo pubblico) [modifica]