Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

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.


advertisement
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.





Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap