< [05] >

More Vector Methods

A.size() ; // returns number of items A.resize(s) ; // shrink/grow to size s A.empty() ; // true if vector is empty A.clear() ; // makes vector empty A.reserve(s) ; // reserve memory for s items A.capacity() ; // memory reserved for this many items