std::basic_string::resize - 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. |
<metanoindex/>
<tbody> </tbody>
|
|
(1) | |
|
|
(2) | |
Ridimensiona la stringa contenga caratteri count.
Original:
Resizes the string to contain count characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se la dimensione corrente è minore di count, caratteri aggiuntivi sono aggiunti.
Original:
If the current size is less than count, additional characters are appended.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se la dimensione corrente è maggiore count, la stringa viene ridotta ai suoi elementi count primo soccorso.
Original:
If the current size is greater than count, the string is reduced to its first count elements.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La prima versione inizializza nuovi personaggi CharT(), la seconda versione inizializza nuovi personaggi ch.
Original:
The first version initializes new characters to CharT(), the second version initializes new characters to ch.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| count | - | nuova dimensione della stringa Original: new size of the string The text has been machine-translated via Google Translate. |
| ch | - | carattere per inizializzare i nuovi personaggi con Original: character to initialize the new characters with The text has been machine-translated via Google Translate. |
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.