Reverse Ranges

There were always roundabout ways of reversing a range. Now we have a predefined function to do just that.

std::reverse and std::reverse_copy invert the order of elements in their ranges.

std::reverse: Reverses the order of elements in the range.

Get hands-on with 1200+ tech skills courses.