: throw.
: new ( new(std::nothrow) malloc - ), , - , (, 0), operator new, - , .
, set_new_handler(), , litb.
, ++, . , , :
int DoSomething(int &output, const int input) throw() {
try {
output = library_do_something(input);
return 1;
} catch (...) {
return 0;
}
}
catch (...) ++ library_do_something ( output, ), , , 0.
, , RAII, , . RAII , , . - , . .