I am studying exceptions in C ++, and I would like to clarify the scenario:
T function() throw(std::exception);
...
T t = value;
try { t = function(); }
catch (...) {}
if an exception is thrown, what is the state of the variable t? unchanged or undefined?
source
share