4 ms·
Honestly, you don't have to understand value categories to this degree. The distinctions are important for writing the standard, but I've never once explained (
by MauranKilom 5y ago
Honestly, you don't have to understand value categories to this degree. The distinctions are important for writing the standard, but I've never once explained (or was explained) a line of code where diving into the depths of value categories would add anything.
In practice it boils down to "if it has a name, you need to std::move it to get move semantics, otherwise you don't". Caveats apply (e.g. returning a named value).