Search⌘ K

Simplification of gl/prvalue

Explore the simplification of prvalue and glvalue expressions in C++17, focusing on how the updated definitions enhance copy elision and deferred temporary materialization. Understand when temporaries can be omitted and exceptions where they are still required.

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
...