Move semantics clarification [duplicate]
问题 This question already has answers here : Closed 6 years ago . I have read the below post which gives a very good insight into move semantics: Can someone please explain move semantics to me? but I am still fail to understand following things regarding move semantics - Does copy elision and RVO would still work for classes without move constructors? Even if our classes doesn't have move constructors, but STL containers has one. For operation like std::vector vt = CreateMyClassVector(); and to