constexpr与const的区别 示例提问编译时常量 vs 运行时常量补充:性能优化 示例
#ifdef _DEBUGconstexpr int debug 1;
#elseconstexpr int debug 0;
#endif提问
我不明白
constexpr int debug 0;
与
const int debug 0;
的区别编译时常量 vs 运行时常量
constexpr: 保证…
第一章 Ubuntu系统入门
1.1 Linux磁盘管理
1.1.1 Linux磁盘管理基本概念 关键词: Linux 磁盘管理 挂载点 /etc/fstab文件 分区 ls /dev/sd* 联系描述: Linux 磁盘管理体系通过“挂载点”概念替代了 Windows 中的“分区”概念,将硬盘部分以文…
距离vue3.3发布已经过了一年多(2023.5.11),vue3.3提高开发体验的新特性你用了吗? 组件内部导入复杂类型 3.3之前想在组件内部导入复杂类型做props类型是不支持的。 <script setup lang"ts">import type { People } from /types;withDefaults(define…