Top "Move-semantics" questions

Move semantics is a programming language feature that allows a copy operation to be replaced by a more efficient "move" when the source object is a temporary or an otherwise expiring object.

Is it possible to move a boost::optional?

I've been trying to define a defaulted move constructor in a class with a boost::optional member variable. #include <…

c++ boost c++11 move-semantics boost-optional
Make a class non-copyable *and* non-movable

Before C++11, I could use this to make a class non-copyable: private: MyClass(const MyClass&); MyClass& operator=(const …

c++ c++11 constructor move move-semantics
Why does reallocating a vector copy instead of moving the elements?

Possible Duplicate: How to enforce move semantics when a vector grows? insert, push_back and emplace(_back) can cause a …

c++ c++11 stdvector move-semantics