LINUX.ORG.RU

История изменений

Исправление pavlick, (текущая версия) :

Я смотрю в http://eel.is/c draft/intro.execution#def:evaluation и мне кажется, что не это имеют в виду.

Не знаю как иначе это можно понять:

Each C++ expression (an operator with its operands, a literal, a variable name, etc.) is characterized by two independent properties: a type and a value category. Each expression has some non-reference type, and each expression belongs to exactly one of the three primary value categories: prvalue, xvalue, lvalue, defined as follows:
*a glvalue (“generalized” lvalue) is an expression whose evaluation determines the identity of an object, bit-field, or function;
...

https://en.cppreference.com/w/cpp/language/value_category

Исходная версия pavlick, :

Я смотрю в http://eel.is/c draft/intro.execution#def:evaluation и мне кажется, что не это имеют в виду.

Не знаю как иначе это можно понять:

Each C++ expression (an operator with its operands, a literal, a variable name, etc.) is characterized by two independent properties: a type and a value category. Each expression has some non-reference type, and each expression belongs to exactly one of the three primary value categories: prvalue, xvalue, lvalue, defined as follows:
*a glvalue (“generalized” lvalue) is an expression whose evaluation determines the identity of an object, bit-field, or function;
...

https://en.cppreference.com/w/cpp/language/value_category