Saltar al contenido principal
0

Por ahora, esta lección está en inglés.

Hand it over, don't copy it

Copying a vector of a million strings copies a million strings. Often you do not need the original any more, so why pay? Move semantics let one object take over the insides of another in a few pointer assignments.