# reverse **Description :** It reverses the order of the elements in the range [first, last) of any container. **Example** : ```cpp int main() { int i; std::vector v1{1,2,3,4}; std::reverse(v1.begin(),v1.end()); for (auto value : v1) { std::cout << value << " "; } return 0; } ``` **[Run Code](https://rextester.com/NXC57566)**