DeepRead
Cover of C++ Move Semantics - The Complete Guide

C++ Move Semantics - The Complete Guide

Nicolai M. Josuttis · 2020

Programming and computer science › C and C++

#12,521 most recommended

About the book

The book covers move semantics in C++, the language feature from C++11 that lets objects transfer their resources instead of copying them. Its scope includes rvalue references, std::move, perfect forwarding, copy elision, and the special member functions that control moving, with coverage running through later standard versions up to C++20. The central claim is that move semantics can only be used correctly when the programmer understands value categories, what a moved-from object is left holding, and when the compiler moves automatically. The book treats moving as a precise operation with defined effects rather than a loose optimization, and it works through common misconceptions, such as the idea that std::move performs a move by itself. It also argues for designing types so that the compiler-generated special members handle resource management correctly.

Written by Claude from what it knows of this book.

What Hacker News says 50% recommend · 0% critical

01220212022202320242021 peak · 1
This bookAverage book in C and C++

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

  • 1 want to read
  • 0 reading
  • 0 have read

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

Details

First published
2020
ISBN
9783967309003
Editions known
2 at Open Library
Open Library
OL26249946W

Explore in the mosaic

Read next: its neighbours on the mosaic