Swap Ranges

Along with moving data between ranges, we can also swap their values with one another.

std::swap and std::swap_ranges can swap objects and ranges.

swap: swaps objects.

Get hands-on with 1400+ tech skills courses.