摘要:
Modern C++ 模板通用工厂 1 简单应用示例 1.1 示例代码 #include <iostream> #include <string> using namespace std; class Shape { public: virtual void calc_area() { cout < 阅读全文
摘要:
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 阅读全文