Overdoing C++ Templates

来源:王朝搜索
 
Overdoing C++ Templates

by , the Author of MAR 22, 2002 Steve Donovan explains why software engineerin

转贴一篇文章,喜欢STL的朋友别错过:Overdoing Templates(过度使用模板)

这篇文章是Steve Donovan写的,他是“C++ By Examples”的作者,他开发了一个叫做UnderC的C++解释器,可以把C++当成脚本语言来解释执行。跟Bjarne Stroustr

翻译:Effective C++, 3rd Edition, Item 44: 从 templates(模板)中分离出 parameter-independent(参数无关)的代码(上)

Item 44: 从 templates(模板)中分离出 parameter-independent(参数无关)的代码 作者: 译者: 发布: templates(模板)是节省时间和避免代码重复的极好

C++ Templates 的一个例子

C++ Templates <The complete guide> 中的一个例子: 一个模板基类 template<class T> class Base { public:

C++ Templates 的另类用法

先来看一看下面这个 template. extern "C++" // templates cannot be declared to have 'C' linkage template <

C++ Coding Tips - Chapter3. Templates

.Body { font-family: Verdana,Arial,Helvetica,sans-serif ; margin: 0 ; font-size: x-small ; }

翻译:Effective C++, 3rd Edition, Item 45: 用 member function templates(成员函数模板) 接受 "all compatible types"(“所有兼容

Item 45: 用 member function templates(成员函数模板) 接受 "all compatible types"(“所有兼容类型&rdquo

C++ Templates (给模板参数命名2)

上面那个帖子的实现手法不太好, 当client使用的时候, 还是需要 BreadSlicer< Policy3_is<CustomPolicy>, Policy2_is<Cu

C++ Templates (给模板参数命名)

看C++ Templates 16.1 Named Template Arguments 书中的例子实现手法使用多重/虚拟继承, 实现手法感觉比较诡秘. 但是至少告诉我是可以实现的. 于是干脆自己

《C++ Templates》原作序

C++模板的思想早在十年前就产生了。并于1990年被加入到”Annotated C++ Reference Manual”(即”ARM”)中(见),并且

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有