Question OOP-CTOR-0068
HardWhy should move constructors usually be marked noexcept?
- A.
It makes them faster to compile
- B.
It prevents copying
- 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
Why should move constructors usually be marked noexcept?
It makes them faster to compile
It prevents copying
Sign up free to see the answer and a step-by-step explanation.
It is required by the language
Standard containers such as vector only move elements during reallocation if the move can't throw