Suppose i have a
std::vector<int> v
//and ...
for(int i =0;i<100;++i)
v.push_back(i);
now i want an iterator to, let's say 10th element of the vector.
without doing the following approach
std::vector<int>::iterator vi;
vi = v.begin();
for(int i = 0;i<10;i++)
++vi;
as this will spoil the advantage of having random access iterator for a vector.