throw() 修饰函数签名的作用

摘录自:https://blog.csdn.net/to_baidu/article/details/53763683

Exception::~Exception() throw() {}

  

表示此函数不会抛出任何异常。

 

 

throw()  修饰,表示“限制函数抛出任何异常

throw(...) 修饰,表示“函数可能会抛出任何类型的异常

throw(XXX) 修饰,表示“函数可能会抛出XXX类型的异常

posted @ 2020-06-06 14:54  路边的十元钱硬币  阅读(230)  评论(0编辑  收藏  举报