摘要: 一. 概述 noexcept 是C++11中的特性,既是一个说明符,也是一个运算符。能够说明函数是否会抛出异常,如下: 1 struct X { 2 3 int f() const noexcept { 4 return 58; 5 } 6 7 void g() noexcept {} 8 }; 9 阅读全文
posted @ 2021-11-03 20:14 Asp1rant 阅读(2121) 评论(0) 推荐(0)