Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++rule of 5 and rule of 0Single-choice MCQ

You declare a move constructor as `Foo(Foo&&) = default;` but leave the copy constructor and copy assignment alone. Which special members does the compiler implicitly provide for Foo afterward?

struct Foo { Foo(Foo&&) = default; // nothing else user-declared };