// Cross a Try Statement with a Termination Handler #include #include struct NotRaisedException : public std::exception {}; int main(int argc, char * argv[]) { unsigned int times = 1; if (2 < argc) { times = strtol(argv[1], nullptr, 10); } for (unsigned int count = 0 ; count < times ; ++count) { try { // ... } catch (NotRaisedException &) { // ... } } }