cpp std reverse code example
Example 1: std::reverse
std::vector<int> v{1,2,3};
std::reverse(std::begin(v), std::end(v));
Example 2: reverse c++
reverse(str.begin(),str.end());
std::vector<int> v{1,2,3};
std::reverse(std::begin(v), std::end(v));
reverse(str.begin(),str.end());