0

This post What are rvalues, lvalues, xvalues, glvalues, and prvalues? provides the definitions of rvalue, lvalues, xvalues, glvalues, and prvalues, but I don't see examples.

I think I have a solid understanding of lvalues and rvalues, but not so much of xvalues, glvalues, and prvalues. Examples (code) of each and their differentiation would really help.

24n8
  • 1,898
  • 1
  • 12
  • 25
  • 2
    The cppreference seems to have exhaustive examples: https://en.cppreference.com/w/cpp/language/value_category – Artyer Apr 26 '20 at 13:47
  • A good graphical approach is given in this [ACCU link](https://accu.org/index.php/journals/2641) of an article of the free [Overload Journal 150](https://accu.org/var/uploads/journals/Overload150.pdf) – NGI Apr 26 '20 at 14:25
  • The question has already an answer [in this Stack Overflow thread](https://stackoverflow.com/questions/3601602/what-are-rvalues-lvalues-xvalues-glvalues-and-prvalues). – Rohan Bari Apr 26 '20 at 15:37

0 Answers0