std::reverse

C++
    std::vector<int> v{1,2,3};
    std::reverse(std::begin(v), std::end(v));
Source

Also in C++: