In what scenarios should I expect to explicitly need to implement a move constructor and move assignment operator?
问题 Given that a class actually is moveable , manually implementing the move constructor and move assignment operator for a class quickly become tedious. I was wondering when doing so is actually a heavy, heavy, premature optimization? For instance, if a class only has trivial POD data or members that themselves have move constructor and move assignment operator defined, then I'd guess that the compiler will either just optimize the shit out of the lot (in the case of PODs) and otherwise use the