首页> 外文期刊>C - C++ Users Journal >A Variation on the Curiously Recurring Template Pattern
【24h】

A Variation on the Curiously Recurring Template Pattern

机译:奇怪的重复模板模式的变体

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

The curiously recurring template pattern splits generic and concrete functionality by delegating to its derived class. Figure 1 depicts this code fragment as UML. For the variation I present here, the term "parametric base class pattern" has been coined. Common to all uses of the pattern that I'm aware of is that a template parameter used to connect generic and concrete functionality is required to fulfill a specific concept. On the other hand, in this article, I do not make any assumptions on the template parameter, and thus, gain flexibility.
机译:奇怪的循环模板模式通过委派给派生类来拆分通用功能和具体功能。图1将这个代码片段描述为UML。对于我在这里提出的变体,创造了术语“参数基类模式”。我知道该模式的所有用法的共同点是,为了实现特定的概念,需要使用用于连接通用功能和具体功能的模板参数。另一方面,在本文中,我没有对template参数做任何假设,因此获得了灵活性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号