What does the noexcept specifier tell the compiler?
- A The function does not throw exceptions, allowing certain optimisations
- B Exceptions are caught internally
- C The function cannot fail
- D All exceptions are converted to error codes
Answer
The function does not throw exceptions, allowing certain optimisations
If a noexcept function does throw, std::terminate is called. Move operations and destructors should generally be noexcept.





