This is my learning notes of Core C++ 2019 :: Dan Saks :: Understanding Lvalues and Rvalues.
This is an excellent guide to help us understanding more details of Lvalues and Rvalues.
I'd like to summary the most important stuff for me here. Any other details can be deep dive into the video/slides.
This is a perfect summary of Lvalue and Rvalue behaviors. Refer to understanding-cpp11/rvalue_reference also.
A reference is essentially a pointer(acts like a const pointer) that's automatically dereferenced each time it's used.
It gives much sense to me for where the reference comes from.
Values categories in modern C++
. Refer to understanding-cpp11/rvalue_reference also.