Question OOP-CTOR-0067
HardWhen does C++ generate a move constructor automatically?
- A.
Never
- B.
Only for structs
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
When does C++ generate a move constructor automatically?
Never
Only for structs
Sign up free to see the answer and a step-by-step explanation.
Always
Only if the class declares no copy operations, no move operations and no destructor of its own