Reverse Ranges
There were always roundabout ways of reversing a range. Now we have a predefined function to do that.
std::reverse
and std::reverse_copy
invert the order of the elements in their range.
Reverses the order of the elements in the range:
Get hands-on with 1400+ tech skills courses.