[计算机科学经

2 max rt double t1 t2 int double max max template

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: 對比於 Value Functions) 263 15.2.1 決定元素型別(Element Types) 264 15.2.2 確認是否為 Class Types 266 C++ Templates - The Complete Guide 目錄 xiii 15.2.3 References(引用)和 Qualifiers(飾詞) 268 15.2.4 Promotion Traits(型別晉升之特徵萃取) 271 15.3 Policy Traits 275 15.3.1 惟讀的參數型別(Read-only Parameter Types) 276 15.3.2 拷貝(Copying)、置換(Swapping)和搬移(Moving) 279 15.4 後記 284 16 Templates(模板)與 Inheritance(繼承) 285 16.1 具名的 Template Arguments(模板引數) 285 16.2 EBCO(Empty Base Class Optimization, 空基礎類別優化) 289 16.2.1 佈局原理(Layout Principles) 290 16.2.2 將成員(Members)改為 Base Classes 293 16.3 CRTP(Curiously Recurring Template Pattern,奇特遞迴模板範式) 295 16.4 將虛擬性(Virtuality)參數化 298 16.5 後記 299 17 Metaprograms(超程式) 301 17.1 第㆒個 Metaprogram 示例 301 17.2 Enum 數值 vs. Static 常數 303 17.3 第㆓個例子...
View Full Document

Ask a homework question - tutors are online