摘要: Using __cplusplus to check the version of C++ that is used by compiler. Reference [1] Replacing text macros [2] Standard Predefined Macros 阅读全文
posted @ 2023-09-03 20:57 0x7F 阅读(3) 评论(0) 推荐(0) 编辑
摘要: The collocation between const and original pointer is confused to many people. There are two usages of it. The first one is a variable pointer that po 阅读全文
posted @ 2023-09-03 16:14 0x7F 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 关于模版元编程和函数式编程,涉及到的是C++的5种编程范式,i.e. 1. 面向过程 2. 面向对象 3. 函数式 4. 范型 5. 模版元编程 模版元编程 元编程(metaprogramming)是指编写能够生成或操作其他程序的程序。 1. 写在尖括号内的包含两种内容:模版类型参数和非模版类型参数 阅读全文
posted @ 2023-09-03 12:42 0x7F 阅读(17) 评论(0) 推荐(0) 编辑