rvalue and lvalue

In C++, the distinction is less simple. In C++, an lvalue expression yields an object or a function.However, some lvalue, such as const objects, may not be the left-hand operand of an assignment.Moreover,some expressions yield objects as an rvalue,we use the object's value(its contents).When we use an object as an lvalue,we use the object's identity(its location in memory).


你可能感兴趣的:(rvalue and lvalue)