how to iterate over vector in backwarts c++ code example Example: iterate over vector in c++ for (auto & element : vector) { element.doSomething (); }