Programming Languages, Cpp, Software Development, Coding, Optimization.
or a non-reference (for prvalues). xvalue So, the one remaining category to discuss is xvalues, which are glvalues designated as expiring (xvalues = expiring values). Here we manually designate name as expiring by using the std::move cast (line 5). The consequence is that the only valid operation