First page Back Continue Last page Graphics
Advantages (cont.)
You can iterate through the vector in forward or reverse.
It is a simple matter to add bounds checking to both operator[ ] and pointer dereferencing.
vector<T> objects can reside in any type of memory, as well as types not directly supported by your compiler.
Unlike arrays, vector <T> has a usable assignment operator, as well as comparison operators.