2 ms·
No. Both copies and moves are simple memcpy at the machine-level[0], the only difference is whether the compiler will let you keep using the source afterwards.
by masklinn 8y ago
No. Both copies and moves are simple memcpy at the machine-level[0], the only difference is whether the compiler will let you keep using the source afterwards.
[0] though I guess the compiler might be smart enough to implicitly pass big-enough values by pointer instead