Simplification of gl/prvalue
This section further touches upon the concept of glvalue/prvalue in C++ 17.
We'll cover the following
Writing pr/gl value Expressions
To support Copy Elision, the authors of the proposal provided the updated definitions of glvalue
and prvalue
. From the Standard:
glvalue
- Aglvalue
is an expression whose evaluation computes the location of an object, bit-field, or functionprvalue
- Aprvalue
is an expression whose evaluation initialises an object, bit-field, or operand of an operator, as specified by the context in which it appears
For example:
Get hands-on with 1400+ tech skills courses.