Move semantics, introduced with C++11, has become a hallmark of modern C++ programming. However, it also complicates the language in many ways. Even after several years of support of move semantics experienced programmers struggle with all the details of move semantics. And style guides still don't recommend the right consequences for programming even of trivial classes. Time to explain all aspects of C++ move semantics in detail. This book teaches C++ move semantics. Starting from the basic principles it motivates and explains all the corner cases of move semantics so that you as a programmer can use move semantics right. The book is valuable for those that are beginning to learn about move semantics and is essential for those that are using it already. You will The focus lies on the application of the described features in practice. Compelling examples and useful background information help to understand and improve code from trivial classes up to generic foundation libraries and frameworks. "I thought I understood move semantics but I didn't really! I learned a lot in your book." (Jonathan Boccara) "This is the book I’ve needed for a long time." (Rob Bernstein) "Sometimes I think I have a better grasp on entanglement & quantum teleportation than I do in some weird C++ move semantics. To paraphrase If you think you understand C++ move semantics, you don't understand C++ move semantics. Read this book." (Victor Ciura)
that was probably more material than anyone really needed regarding move semantics, but i can't say it was anything short of comprehensive. c++ has grown into something sprawling and huge over the past decade, and while many of the changes are welcome, it makes me sad that i'll never be able to memorize the language definition in its entirety (as i did for ANSI C). if you want to write efficient modern c++, you absolutely need to have your move semantics down cold, and this is the book to read to get there. a fine job covering what's simply too large of a topic--the fault is with the language designers.
Who would have thought that a whole book on move semantics would be a good idea� yet C++ Move Semantics is filled with clear explanations, practical tips and simple examples that most C++ devs will find very useful.
Explains the whole move semantics and value categories very well, including lots of caveats and corner cases you should be aware of... and up to date with latest C++17/20 standard!
About 260 pages to discuss how we copy values between variables, the bigger problem is that the explanation and the writing were very much on point :")). Otherwise, excellent book.
Really a great book, with a lot of depth but always very understandable, gave me a lot of insight into move semantics, of which I only had surface level understanding before!