#include #include #define SIZE 10 using namespace std; int main() { vector ints; for(int i=0; i<10; i++) ints.push_back(SIZE-i); for(vector::reverse_iterator it=ints.rbegin(); it!=ints.rend(); it++) { *it += 10; // we modify container here cout << *it << " "; } cout << endl; }