摘要: Modern C++ 模板通用工厂 1 简单应用示例 1.1 示例代码 #include <iostream> #include <string> using namespace std; class Shape { public: virtual void calc_area() { cout < 阅读全文
posted @ 2022-01-07 20:39 kaizenly 阅读(501) 评论(0) 推荐(0) 编辑
摘要: CRTP 1 CRTP 1.1 定义 英:The curiously recurring template pattern (CRTP) is a C++ idiom in which a class X derives from a class template instantiation usi 阅读全文
posted @ 2022-01-07 20:32 kaizenly 阅读(609) 评论(0) 推荐(0) 编辑
打赏_a56爆大奖在线娱乐