function declaration with throw

  • void f() throw() // no exceptions allowed 不允许抛出任何异常
  • void f() throw(...) // all exceptions allowed 允许抛出任何异常

  • void f() throw(type) // only the exception of type type allowed 只允许抛出type类型的异常

标签: cplusplus
日期: 2016-05-13 17:30:06, 8 years and 247 days ago
留言

回复不允许使用html标签

通过电子邮件通知我有后续评论.