Move Semantics
Assignment and function-call passing transfer ownership rather than copying: the source binding is invalidated and using it afterward is a compile error. A move copies only the shallow bits (pointer, length, capacity), never the heap payload.
This Concept is waiting for its first lesson!
Assignment and function-call passing transfer ownership rather than copying: the source binding is invalidated and using it afterward is a compile error. A move copies only the shallow bits (pointer, length, capacity), never the heap payload.
Are you a teacher? Sign in to start contributing.
Sign In