First page Back Continue Last page Graphics
Vector<T> Iterator
Can be considered as “smart pointer”.
The following loop will iterate through all positions of the vector:
- for (vector <T>::iterator i = object.begin;
- i != object.end();
- i++)
Outputting elements of the vector