C++ 11标准对标准库相关的自移动赋值有何看法?更具体的是,什么(如果有的话)保证什么selfAssign呢?
selfAssign
template<class T> std::vector<T> selfAssign(std::vector<T> v) { v = std::move(v); return v; }
c++ stl move-semantics c++11
c++ ×1
c++11 ×1
move-semantics ×1
stl ×1