Namespace
Varianti

std::valarray::resize

Da cppreference.com.
< cpp‎ | numeric‎ | valarray
Versione del 2 lug 2013 alle 14:54 di P12bot (Discussione | contributi)

(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale (C++11)
Generici operazioni numeriche
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
std::valarray
Membri funzioni
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Non membri funzioni
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Helper classi
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
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.
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.
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.

Indice

[modifica] 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.

[modifica] 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.

[modifica] Esempio

[modifica] 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) [modifica]