Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

C++ Move Semantics - The Complete Guide

Rate this 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 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)

250 pages, ebook

Published August 30, 2020

12 people are currently reading
68 people want to read

About the author

Nicolai M. Josuttis

17Ìýbooks14Ìýfollowers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
19 (65%)
4 stars
10 (34%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 6 of 6 reviews
Profile Image for Nick Black.
AuthorÌý2 books865 followers
November 30, 2023
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.
Profile Image for Sergey.
25 reviews
May 5, 2025
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.
Profile Image for Martin Rosselle.
2 reviews
February 17, 2021
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!
17 reviews10 followers
September 10, 2021
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.
64 reviews1 follower
April 22, 2023
Just exceptional, I probably just grasped half of the concepts, but that was more than eye opening for me.
Profile Image for Martin Winter.
69 reviews
December 28, 2021
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!
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.