C++ 异常处理机制

一直不知道C++中的异常是如何处理的,为什么通过一个throw语句,语言运行时就知道发生了异常,并且能在catch块中捕捉和处理这个异常。

今天看了Itanium C++ ABI: Exception Handling,大概整理总结了一下思路

 

翻译&参考:https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html

 

Leave a Reply

Your email address will not be published. Required fields are marked *