[计算机科学经

24 p271 42 6666 max double 6666 int 66 local temporary

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 226 13.17 後記 228 第㆔篇:模板與設計(Templates and Design) 229 14 Templates 的多型威力(The Polymorphic Power of Templates) 231 14.1 動態多型(Dynamic Polymorphism) 231 14.2 靜態多型(Static Polymorphism) 234 14.3 動態多型 vs.靜態多型 238 14.4 Design Patterns(設計範式)的新形式 239 14.5 泛型編程(Generic Programming) 240 14.6 後記 243 15 Traits(特徵萃取)和 Policy Classes(策略類別) 245 15.1 示例:序列的累計(Accumulating a Sequence) 245 15.1.1 Fixed Traits(固定式特徵) 246 15.1.2 Value Traits(數值式特徵) 250 15.1.3 Parameterized Traits(參數式特徵) 254 15.1.4 Policies(策略)和 Policy Classes(策略類別) 255 15.1.5 Traits 和 Policies 有何差異? 258 15.1.6 Member Templates vs. Template Template Parameters 259 15.1.7 聯合多個 Policies 和/或 Traits 261 15.1.8 以泛型迭代器(General Iterators)進行累計(Accumulation) 262 15.2 Type Functions(譯註:...
View Full Document

Ask a homework question - tutors are online