4 ms·
It's not as surprising when you consider that moving the value into the function also makes it permanently unavailable to the caller. So what difference does it
by jdmichal 7y ago
It's not as surprising when you consider that moving the value into the function also makes it permanently unavailable to the caller. So what difference does it really make? The semantics are the same either way. The lifetime of the object ends within the function.