O'Reilly logo

C++ for the Impatient by Brian Overland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. A Painless Introduction to Rvalue References (C++11)

Programming with rvalue references is a technique for optimizing the speed of your programs. It’s closely related to move semantics, which replaces copying of data with data transfers. Think of how much faster a piece of code can be if it lets an object steal ownership of data rather than copying that data out. (If it isn’t immediately clear how this can speed up your programs, don’t worry. This appendix explores the concept in greater depth.)

C++11 builds support for rvalue references into the STL, which can cause your programs to run faster even if you don’t know about this feature. Adding support for rvalue references to your own code can optimize your programs further, sometimes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required