摘要: 直接结合代码讲解: //先在工厂使用前注册标签和创建功能 Factory<CreateAnimal> farm; farm.subscribe("CAT", [](const std::string & n) { return std::make_unique<Cat>(n); });///< st 阅读全文
posted @ 2022-07-27 11:49 Mr42Sir 阅读(74) 评论(0) 推荐(0)