摘要: 一、右值1、int&& b = 6; //这个时候只能右值引用2、template<typename T>void printValue( T&& t){ cout << "r-value: " << t << endl; t = 0;}函数里面的T&& ,即可也接收左值也可以接收右值,除非被重写3 阅读全文
posted @ 2022-06-14 19:37 cnchengv 阅读(16) 评论(0) 推荐(0) 编辑