Link #1 declares a reverse iterator like so: std::vector<int>::reverse_iterator rit = myvector.rbegin();
While link #2 declares one like this: std::reverse_iterator<iter_type> rev_until
The codes are using two different iterator objects (declared differently) but are essentially doing the same exact thing: iterating backwards through a vector. In fact, link #2 seems to be a convoluted way of doing what link #1 is doing.
So my question is, what is even the point of std::reverse_iterator in the <iterator> library when there is already a nested reverse_iterator within the vector class? Is there some additional functionality that the former provides which the latter lacks?