C++11新特性:std::move()

std::move() 接受一个左值/右值变量 做用是把传入的变量置为右值并返回绑定到这个变量上的一个右值引用 请看代码:web int a = 20; int &&b = std::move(a);
相关文章
相关标签/搜索