Why does C++ move semantics leave the source constructed?
问题 In C++11, "move semantics" was introduced, implemented via the two special members: move constructor and move assignment. Both of these operations leave the moved-from object constructed. Wouldn't it have been better to leave the source in a destructed state? Isn't the only thing you can do with a moved-from object is destruct it anyway? 回答1: In the "universe of move operations" there are four possibilities: target source is is left ----------------------------------------------------------