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

Why does adding `std::move` to the return statement here typically make the code slower, not faster?

std::vector<int> make() { std::vector<int> v(1000); return std::move(v); // (!) }