Every expression has a value category. An lvalue names an object that outlives the expression: a variable a, *p, v[i]. A prvalue computes a value that no name holds yet: 42, x + y, a call f() returning by value, Buffer("Quay"). An xvalue names an object whose resources may be taken, such as std::move(a). Prvalues and xvalues together are the rvalues.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Value category, lvalue, rvalue?
又称: value category · lvalue · rvalue