会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
helloylh
博客园
首页
新随笔
联系
管理
订阅
2022年11月13日
c++ noexcept与constexpr解析
摘要: 文章目录 1. noexcept无需抛出异常2. constexpr静态编译关键字编译期常量类中constexpr 1. noexcept无需抛出异常 在C++中使用noexcept来标识一个函数不会抛出异常。 noexcept:noexcept默认为true的形式,即抛出异常。 void f()
阅读全文
posted @ 2022-11-13 20:48 hugeYlh
阅读(58)
评论(0)
推荐(0)
编辑
公告