Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++move semantics and rvalue refsSingle-choice MCQ

Inside this function, what is the value category and behavior of returning the parameter x?

std::string f(std::string&& x) { return x; // (A) }