"抛出"空表达意味着什么?

tem*_*boy 0 c++ exception

有时在代码中我看到抛出异常,其中使用了throw关键字而旁边没有表达式:

throw;
Run Code Online (Sandbox Code Playgroud)

它是什么意思,什么时候应该使用它?

Yu *_*Hao 5

throw重新抛出异常.

它只能出现在a catch或从a调用的函数中catch.

如果throw处理程序未处于活动状态时遇到空,terminate则将调用.