Exceptionsare intended to cope with problems that don't Typically manifest, soimplementations are tailored to improve performance for the case whereno exceptions are thrown. With modern compilers, exception supportresults in no runtime Expense Except if an exception is thrown. So a C++ class which has a member perform is equivalent, https://pievcore.com/tags