Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++copy elision RVO NRVOSingle-choice MCQ

In C++17, is copy elision applied when you 'return std::move(local);' from a function whose return type matches local's type, and what is the practical effect?

Big f() { Big b; return std::move(b); }