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

What does this code do when called as relay(std::string("hi")), and why?

void sink(std::string s); template <class T> void relay(T&& x) { sink(x); // note: no std::forward }