stl to reverse a vector code example
Example 1: reverse a vector c++
// Given the vector
vector<int> a = { 1, 45, 54, 71, 76, 12 };
// Reverse the vector
reverse(a.begin(), a.end());
Example 2: reverse in vector c++
reverse(start_index, last_index);