Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++perfect forwarding std::forwardSingle-choice MCQ

Given the function below, what is printed when it is called as `make(Widget{});` where `Widget` is a movable type?

template <typename T> void make(T&& arg) { process(arg); process(std::forward<T>(arg)); } // process(const Widget&) prints "lvalue" // process(Widget&&) prints "rvalue"