< >
"關於這本書,我最喜歡它同時展示了 templates 的兩個面向:結構和應用。一本書同時展示這兩者是十分罕見的。書中實例水準一流、簡練、解釋清楚。"─ Patrick Mckillen, Vision Information Consulting Ltd."本書涵蓋 templates 的方方面面。你永遠都不需要知道這每一樣東西,但對於有效使用 templates 來說,它們不可或缺。"─ Dietmar Kuhl, Phaidros eaSETemplates是最具威力的C++特性之一﹐但它們常常被過度忽視、誤解和誤用。《C++ Templates: The Complete Guide》為軟體架構師和軟體工程師提供了一個清晰視野,讓他們知道為什麼、何時、如何使用 templates 來高率地效建構和維護更清晰、更快速、更靈巧的軟體。《C++ Templates》以基本概念和語言特性之深刻洞察做為出發點。其餘篇幅則是全面而詳盡的參考資料:首先專注語言細節,而後是廣泛的編碼技術,最後是templates高階應用。各種實例貫穿本書,驗證抽象概念並示範最佳實踐手法。讀者可從本書學習到:* Templates的精確行為* 如何避免Templates相關缺陷* 慣用手法(idioms)與技術,從基本層次到從未被記錄在案的層次* 如何在不威脅效率或安全性的前提下復用源碼* 如何提高C++程式效率* 如何生產更彈性、更易維護的軟體這本實用指南,向程式員展現如何得以開拓 C++ Templates 的完整威力。英文版支援網站 http://www.awl.com/cseng/titles/0-201-37926-0/
1 關於本書(About This Book)第一篇:基本認識(The Basics)2 Function Templates(函式模板)3 Class Templates(類別模板)4 Nontype Template Parameters(非型別模板參數)5 高層次基本技術(Tricky Basics)6 實際運用Templates 7 Template基本術語 第二篇:深入模板(Templates in Depth)8 基礎技術更深入(Fundamentals in Depth)9 Templates內的名稱10 具現化/實體化(Instantiation)11 Template引數推導(Template Argument Deduction)12 特化與重載(Specialization and Overloading)13 未來發展方向(Future Directions) 第三篇:模板與設計(Templates and Design)14 Templates的多型威力(The Polymorphic Power of Templates)15 Traits(特徵萃取)和Policy Classes(策略類別)16 Templates(模板)與Inheritance(繼承)17 Metaprograms(超程式)18 Expression Templates(算式模板)第四篇:高階應用(Advanced Applications)19 型別分類(Type Classification)20 Smart Pointers(靈巧指標)21 Tuples(三部合成構件)22 Function Objects(函式物件)與Callbacks(回呼)附錄 A 單一定義規則(ODR, One-Definition Rule)B 重載決議機制(Overload Resolution)C 參考書目和資源(Bibliography)D 詞彙/術語表(Glossary)索引
C++程式設計 Practical Java Programming Language Guide中文版 Effective Java Programming Language Guide中文版
購買紙本書