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

std::move() 接受一個左值/右值變量 做用是把傳入的變量置爲右值並返回綁定到這個變量上的一個右值引用 請看代碼:web int a = 20; int &&b = std::move(a);
相關文章
相關標籤/搜索