Sobes.tech
Middle

What happens if an exception occurs in a function marked as noexcept?

sobes.tech AI

Answer from AI

The program will terminate with a call to std::terminate(). This behavior is defined in the C++ standard to guarantee the absence of stack unwinding in functions marked noexcept.