std::valarray::resize

From cppreference.com
 
 
 
 
void resize( std::size_t count, T value = T() );

Resizes the valarray to contain count elements.

If the current size is less than count, additional elements are appended and initialized with value.

If the current size is greater than count, the valarray is reduced to its first count elements.

Contents

[edit] Parameters

count - new size of the container
value - the value to initialize the new elements with

[edit] Return value

(none)

[edit] Example

[edit] See also

returns the size of valarray
(public member function)