摘要: constexpr和常量表达式 2.5 constexpr和常量表达式 常量表达式: 不会改变且在编译过程中就能得到计算结果 常量表达式: 字面值,用常量表达式初始化的const对象也是常量表达式 const int max_files = 20; const int max_fils_2 = ma 阅读全文
posted @ 2021-10-02 18:16 ziggystardust 阅读(114) 评论(3) 推荐(0)