我最近开始学习int&& x = 10;右值、左值、移动语义,但我无法理解像 rvalue refs 这样的一些概念。(我认为右值引用是右值)?如果这是真的......有右值引用有什么意义?如果这是错误的,那么 rvalue ref 和 lvalue 之间有什么区别?
int&& x = 10;
c++ rvalue lvalue move-semantics
c++ ×1
lvalue ×1
move-semantics ×1
rvalue ×1