Simplification of gl/prvalue

This section further touches upon the concept of glvalue/prvalue in C++ 17.

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 - A glvalue is an expression whose evaluation computes the location of an object, bit-field, or function
  • prvalue - A prvalue 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 1200+ tech skills courses.