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 · Glosarium
Apa itu Value category, lvalue, rvalue?
Dikenal juga sebagai: value category · lvalue · rvalue