Browse DevX
Sign up for e-mail newsletters from DevX


Move Semantics: Make Your Next Move

Despite the many instances of copy operations at your disposal, experience the efficiency of a new, emerging paradigm called move semantics.

opy construction, assignment, container reallocation, string concatenation, and string copying are all instances of copy operations. However, in recent years a new paradigm is emerging: move semantics. This discussion presents the concept of moving—by showing how it differs from traditional copying—as well as move semantics applications and their benefits.

Though there are many tasks in which copying is the correct operation to carry out, frequently there are other instances in which the reduplication of resources that copying requires is unnecessary.

Apply move semantics through moved-based swapping to optimize swap operations, string concatenation, container reallocation, and many other common operations.

Thanks for your registration, follow us on our social networks to keep up-to-date