First page Back Continue Last page Graphics
vector member functions cont.
resize(num)
- Changes the number of elements to num (if size( ) grows, new elements are created by their default constructor.
resize(num, elem)
- Changes the number of elements to num (if size( ) grows, new elements are copies of elem).
clear( )
- Removes all elements (makes the container empty).