#include #include #define SIZE 10 using namespace std; int main() { vector ints(SIZE); for(int i=0; i::const_iterator it = ints.cend(); // starting from the end of the container while(true) { --it; // move to the previous element cout << *it << " "; if(it == ints.cbegin()) // stop when we reach the first element break; } cout << endl; }