摘要: 文章目录 1. noexcept无需抛出异常2. constexpr静态编译关键字编译期常量类中constexpr 1. noexcept无需抛出异常 在C++中使用noexcept来标识一个函数不会抛出异常。 noexcept:noexcept默认为true的形式,即抛出异常。 void f() 阅读全文
posted @ 2022-11-13 20:48 hugeYlh 阅读(58) 评论(0) 推荐(0) 编辑