【24h】

Design Patterns for Generic Programming in C++

机译:C ++中通用编程的设计模式

获取原文
获取原文并翻译 | 示例

摘要

Generic programming is a paradigm whose wide adoption by the C++ community is quite recent. In this scheme most classes and procedures are parameterized, leading to the construction of general and efficient software components. In this paper, we show how some design patterns from Gamma et al. can be adapted to this paradigm. Although these patterns rely highly on dynamic binding, we show that, by intensive use of parametric polymorphism, the method calls in these patterns can be resolved at compile-time. In intensive computations, the generic patterns bring a significant speed-up compared to their classical peers.
机译:泛型编程是C ++社区最近广泛采用的范例。在此方案中,大多数类和过程都经过参数设置,从而可以构建通用且有效的软件组件。在本文中,我们展示了Gamma等人的一些设计模式。可以适应这种范例。尽管这些模式高度依赖于动态绑定,但是我们证明,通过大量使用参数多态性,可以在编译时解决这些模式中的方法调用。在密集型计算中,与传统模式相比,泛型模式显着提高了速度。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号