std::valarray<T>::resize (3) - Linux Manuals
std::valarray<T>::resize: std::valarray<T>::resize
NAME
std::valarray<T>::resize - std::valarray<T>::resize
Synopsis
void resize( std::size_t count, T value = T() );
Resizes the valarray to contain count elements and assigns value to each element.
This functions invalidates all pointers and references to elements in the array.
Parameters
count - new size of the container
value - the value to initialize the new elements with
Return value
(none)
Example
// Run this code
Output:
See also
size (public member function)