Understanding l-values and r-values in Modern C++: The Foundation of Move Semantics

Every expression in C++ belongs to one of several value categories. Technically, C++ defines additional value categories such as xvalues…