Moving Data with Rvalue References
Ray Lischner · Apress eBooks · 2013
In Exploration 39, I introduced std::move() without explaining what it really does or how it works. Somehow it moves data, such as a string, from one variable to another, instead of copying the string contents, but you must be wondering how it works its wonders. The function itself is surprisingly simple. The concepts that underlie that simple implementation are more complicated, which is why I have waited until now to introduce the complexities and subtleties involved. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.