Enquire Now

Tags: function-try-block

A function try block is a particular syntax of the C++ try block that embraces a whole function. The main advantage of this syntax over a regular try block containing all the function body is that a function try block applied over a constructor includes the constructor initializer list, and thus can catch the exceptions generated by the constructors of base classes and member objects.

0 Questions