undefined behaviour of moving an object “into itself”

前端 未结 0 1617
半阙折子戏
半阙折子戏 2020-12-07 10:25

in https://en.cppreference.com/w/cpp/utility/move

std::vector v = {2, 3, 3};
v = std::move(v); // the value of v is unspecified

Wh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题