:
void func() throw(std::exception,B) { }
:
void func()
{
try
{
}
catch(std::exception const& e)
{
throw;
}
catch(B const& e)
{
throw;
}
catch(...)
{
unexpected();
}
}
terminate() , , RAII . , , , ( ).
(imho) , , - swap(). no-throw, swap() no-throw.
void myNoThrowFunc() throws()
{
try
{
}
catch(...)
{
}
}