About the Book
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 aspectes of C++ move semantics in detail.
This book teaches 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 learn:
- Motivation and terminology of move semantics
- How and why you implicitly benefit from move semantics
- How to explicitly benefit from move semantics
- All traps and how to deal with them
- All consequences for your programming style
As usual for books by Nicolai Josuttis, the focus lies on the application of the new 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.
Buy early, pay less, free updates
Note that this book is published step-by-step. It started with 110 pages first published in January 2020. Since then the contents grows with new chapters, examples, and caveats about the features of move semantics and I integrate all feedback I get for the pages already published.
Currently, a few key chapters are missing (but there is already enough to read) and no proof reading is done yet (yes, I am not a native English writer). See www.cppmove.com for a detailed list of covered topics.
As written, once you bought it you will get all updates for free.
There is not errata yet, but I welcome all feedback to improve the current version.
Look at http://www.cppmove.com/feedback.html.
PDF versus Other Formats
I write the book in LaTeX and generate PDF from it (the way I wrote my other books). The other formats (epub, mobi, and online reading) come from the leanpub markdown interface, for which I generate the necessary input from LaTeX by script.
Thus, the PDF layout has a better quality than the other formats. For example, the syntax highlighting rules for the formats other than PDF have to get fixed as soon as possible and the index is missing yet. Leanpub and me are working on corresponding improvements.
I hope you enjoy and benefit.
About the Author
Nicolai Josuttis (http://www.josuttis.com) is an independent system architect, technical manager, author, consultant, and trainer being active in C++ standardization for 20 years. He designs mid-sized and large software systems for the telecommunications, traffic, finance, and manufacturing industries.
He is well known in the programming community because he not only speaks and writes with authority, being the (co-)author of the world-wide best sellers The C++ Standard Library, C++ Templates, and SOA in Practice, but is also an innovative presenter, having talked at various conferences and events.