resize

Resizes a vector if a second argument is give the elements are filled with that value.

  void resize(size_type sz, T c = T());
  
VectorModifiers

The vector class provides various member functions for vector data manipulation.