我是 c++ 新手,我正在阅读有效的现代 c++,但我不明白这部分
在处理右值引用类型的参数时记住这一点尤其重要,因为参数本身是一个左值:
Widget(Widget&& rhs); // rhs is an lvalue, though it has
… // an rvalue reference type
我是 c++ 新手,我正在阅读有效的现代 c++,但我不明白这部分
在处理右值引用类型的参数时记住这一点尤其重要,因为参数本身是一个左值:
Widget(Widget&& rhs); // rhs is an lvalue, though it has
… // an rvalue reference type