std::valarray::resize
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. |
void resize( std::size_t count, T value = T() ); |
||
Ridimensiona l'valarray per contenere gli elementi
count
.Original:
Resizes the valarray to contain
count
elements.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se la dimensione corrente è minore di
count
, elementi aggiuntivi vengono aggiunti e inizializzati con value
.Original:
If the current size is less than
count
, additional elements are appended and initialized with value
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se la dimensione corrente è maggiore
count
, il valarray viene ridotta ai suoi elementi count
prima.Original:
If the current size is greater than
count
, the valarray 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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
Parametri
count | - | nuove dimensioni del contenitore
Original: new 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. |
value | - | il valore per inizializzare gli elementi nuovi
Original: the value to initialize the new elements with 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.
You can help to correct and verify the translation. Click here for instructions.
Esempio
This section is incomplete Reason: no example |
Vedi anche
restituisce la dimensione di valarray Original: returns the size of valarray The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |