What are lvalues and rvalues?
Show answer and explanation
An lvalue is a glvalue that is not an xvalue and normally denotes an object whose identity persists; an xvalue is a glvalue whose resources may be reused. A prvalue computes a value or initializes an object, and the term rvalue covers prvalues and xvalues. These value categories affect overload resolution, reference binding, temporary materialization, and move semantics; they are more precise than saying only that lvalues appear on the left and rvalues on the right of assignment.
An lvalue is a glvalue that is not an xvalue and normally denotes an object whose identity persists; an xvalue is a glvalue whose resources may be reused. A prvalue computes a value or initializes an object, and the term rvalue covers prvalues and xvalues. These value categories affect overload resolution, reference binding, temporary materialization, and move semantics; they are more precise than saying only that lvalues appear on the left and rvalues on the right of assignment.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.