Email the Author
You can use this page to email Andreas Fertig about Notebook C++: About Move Semantics.
About the Book
The idea of the Notebook C++ series is to share some tips and tricks about various C++ elements. All books in this series are short and small, one for each major topic. Such that the paperback version can be carried around easily.
About Move Semantics
This part of the series is all about move semantics. I will introduce the feature to you in an unconventional but easy-to-understand way. Move semantics are nothing special, after all.
We'll start looking at what move semantics is, how it works, and why we should stay away from std::move most of the time. We establish some rules about when to use std::move when std::forward. You learn about why not to move return values or temporary objects. Do you want the best speed from your custom data type and the STL? No problem, you will learn what your class must look like to achieve this.
In the end, you also learn about features not seen that often, such as reference qualifiers, how they work, why they are there, and when to use them.
All in all, after having read this book, you have a solid understanding of move semantics.
About the Author
Andreas Fertig, CEO of Unique Code GmbH, is an experienced trainer and lecturer for C++ for standards 11 to 23.
Andreas is involved in the C++ standardization committee, in which the new standards are developed. At international conferences, he presents how code can be written better. He publishes specialist articles, e.g., for iX magazine, and has published several textbooks on C++.
With C++ Insights (cppinsights.io), Andreas has created an internationally recognized tool that enables users to look behind the scenes of C++ and thus to understand constructs even better.
Before working as a trainer and consultant, he worked for Philips Medizin Systeme GmbH for ten years as a C++ software developer and architect focusing on embedded systems.
His web presence is andreasfertig.com.