valvector_resize

View page source

Resize a valvector

Sets the size of this valvector.

Prototype

   void resize(size_t n)

Use

This size of a valvector directly after its constructor is always one. This function must be used to create valvectors with other sizes.

n

The argument n must not be zero and specifies the number of elements in the valvector.

Element Values

Directly after this operation, none of the element values are specified.

Example

The file valvector_resize.cpp is an example and test of valvector resize.