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:
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: