I need to iterate over a vector from the end to the beginnig. The \"correct\" way is
for(std::vector::reverse_iterator rit = v.rbegin(); rit !=
Hi i think better way use iterator as you use in first sample and if you need get iterator index you can use std::distance to calculate it, if i understand your question