<分区>
Possible Duplicate:
How do exceptions work (behind the scenes) in c++
我知道 try/catch block 会在运行时增加一些开销。但是没有 try/catch block 的单个“throw”指令是否属于这种情况?
非常感谢。
<分区>
Possible Duplicate:
How do exceptions work (behind the scenes) in c++
我知道 try/catch block 会在运行时增加一些开销。但是没有 try/catch block 的单个“throw”指令是否属于这种情况?
非常感谢。
最佳答案
如果throw没有try/catch,那么throw是没有意义的,会导致应用崩溃。
关于C++ 异常开销和抛出指令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10875301/