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