reverse in vector c++

C++
//vector<int> A;
reverse(A.begin(),A.end());reverse(start_index, last_index);
Source

Also in C++: