They aren’t the same though, are they? One is a copy, the other is a swap. Hence the function names.
My favourite is:
a = b;
Where a and b are vectors.
They aren’t the same though, are they? One is a copy, the other is a swap. Hence the function names.
My favourite is:
a = b;
Where a and b are vectors.