Even when you do look solely at instructions, it only kinda works, even at best. Just for example, a = b;
might be really fast (e.g., you're assigning an int
) or extremely slow (you're copying a couple gigabyte vector). In the latter case, a = std::move(b);
will (at least normally) be millions of times faster than just a=b;
.