All challenges
Multiple ChoiceBeginner 45s

Value category of std::move result

In C++, the expression `std::move(x)` where `x` is a named lvalue of type `T` has which value category, and what is its type?
Options
  1. 1The expression is an xvalue of type `T&&`; std::move itself performs no move.
  2. 2The expression is an lvalue of type `T&`; it moves the object immediately.
  3. 3The expression is a prvalue of type `T`; a temporary is constructed.
  4. 4The expression is an xvalue of type `T&&`; it forcibly moves the object's bytes.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle