Value Categories
The full taxonomy: lvalue, prvalue, xvalue (glvalue = lvalue + xvalue; rvalue = prvalue + xvalue).
Advanced
std::move(x) turns an lvalue into an xvalue. Understanding categories explains overload resolution, copy elision and forwarding.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.