[计算机科学经

1 template max max c templates the complete guide 2

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: :計算平方根(Square Root) 305 17.4 使用「歸納變數」(Induction Variables) 309 17.5 計算的完全性(Computational Completeness) 312 17.6 遞迴具現化(Recursive Instantiation)vs. 遞迴模板引數(Recursive Template Arguments) 313 17.7 運用 Metaprograms 來鋪展(Unroll)迴圈 314 17.8 後記 318 18 Expression Templates (算式模板) 321 18.1 暫時物件和分解迴圈(Split Loops) 322 18.2 Encoding Expressions in Template Arguments 328 18.2.1 Expression Templates 的運算元(Operands) 328 18.2.2 Array 型別 332 18.2.3 運算子(Operators) 334 18.2.4 回顧 336 18.2.5 Expression Templates 的賦值動作(Assignments) 338 18.3 Expression Templates 的效能和極限 340 18.4 後記 341 C++ Templates - The Complete Guide 目錄 xiv 第㆕篇:高階應用(Advanced Applications) 345 19 型別分類(Type Classification) 347 19.1 確定是否為基礎型別(Fundamental Types) 347 19.2 確定是否為 Compound(複合)型別 350 19.3 辨識 Function 型別 352 19.4 運用重載決議(Overload Resolution)區分 Enum 型別 356 19.5 確定是否為 Class 型別 359 19.6 熔於㆒爐 359 19.7 後記 363 20 Smart Pointers(靈巧指標) 365 20.1 Holders 和 Trules 365 20.1.1 防範異常(Exceptions) 366 20.1.2 Holders(持有者) 368 20.1.3 將 Holders 當做成...
View Full Document

This note was uploaded on 08/25/2012 for the course EECS 101 taught by Professor Wre during the Fall '12 term at Beacon FL.

Ask a homework question - tutors are online