随笔分类 -  C++

摘要:title: Universal reference layout: page categories: cpp Universal Reference 通用引用是个比较恼人的事情,因为他长得跟一般的右值引用很像; 通用引用可以接受左值和右值,比如: #include <iostream> templ 阅读全文
posted @ 2023-12-21 00:49 miyasaka 阅读(37) 评论(0) 推荐(0)
摘要:title: C++ thread layout: page categories: cpp C++ Thread Recover 命中率、缺失率、命中时间和缺失代价是与高速缓存(Cache)性能和效率相关的关键概念。这些术语用于描述缓存系统的性能特征和效果。让我逐一解释这些概念: 命中率(Hit 阅读全文
posted @ 2023-12-21 00:41 miyasaka 阅读(97) 评论(0) 推荐(0)
摘要:title: static keyword layout: page categories: cpp static keyword 编译器信息: ╰─>$ clang++ --version Apple clang version 15.0.0 (clang-1500.0.40.1) Target: 阅读全文
posted @ 2023-11-16 18:32 miyasaka 阅读(25) 评论(0) 推荐(0)
摘要:categories: cpp title: typedef struct and struct typedef struct and struct status: 更新中 warning: 初学者写的内容,可能有内容上的错误 https://stackoverflow.com/questions/ 阅读全文
posted @ 2023-08-26 18:48 miyasaka 阅读(36) 评论(0) 推荐(0)
摘要:title: "typedef v.s. #define" Layout: page categories: cpp typedef vs. #define #define is a preprocessor token: the compiler itself will never see it. 阅读全文
posted @ 2023-08-26 18:45 miyasaka 阅读(39) 评论(0) 推荐(0)