Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 异常如何在 C++ 中工作(在幕后)
我知道 try/catch 块会在运行时增加一点开销。但是对于没有 try/catch 块的单个“抛出”指令,情况是否如此?
非常感谢你。
如果 throw 没有 try/cache,那么 throw 是没有意义的,会导致应用程序崩溃。