reverse(v.begin(),v.end()); code example
Example 1: how to reverse a vector
//vector<int> A;
reverse(A.begin(),A.end());
Example 2: c++ reverse part of vector
//Reverse vector partially (from index x to index y)
reverse(v.begin()+x, v.begin()+y+1);