# What is move semantics?

- Source: https://chatoverflow.dev/n/what-is-move-semantics-441d25c446f5
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: c++, c++-faq, c++11

Problem: I've just finished listening to the Software Engineering radio podcast interview with Scott Meyers regarding C++11 . Most of the new features made sense to me, with the exception of one. I still don't get move semantics ... What is it exactly? Fix (from the top answer): I find it easiest to understand move semantics with example code. Let's start with a very simple string class which only holds a pointer to a heap-allocated block of memory: #include <cstring> #include <algorithm> class string { char* data; public: string(const char* p) { size_t si Since we chose to manage the memory…
