C++ Common Knowledge: Essential Intermediate Programming

Stephen C. Dewhurst

  • 出版商: Addison Wesley
  • 出版日期: 2005-02-28
  • 定價: $1,500
  • 售價: 9.0$1,350
  • 語言: 英文
  • 頁數: 272
  • 裝訂: Paperback
  • ISBN: 0321321928
  • ISBN-13: 9780321321923
  • 相關分類: C++ 程式語言
  • 立即出貨

買這商品的人也買了...

商品描述

Table of Contents:

Preface xi
Acknowledgments xvii
A Note on Typographical Conventions xix

Item 1: Data Abstraction 1
Item 2: Polymorphism 3
Item 3: Design Patterns 7
Item 4: The Standard Template Library 11
Item 5: References Are Aliases, Not Pointers 13
Item 6: Array Formal Arguments 17
Item 7: Const Pointers and Pointers to Const 21
Item 8: Pointers to Pointers 25
Item 9: New Cast Operators 29
Item 10: Meaning of a Const Member Function 33
Item 11: The Compiler Puts Stuff in Classes 37
Item 12: Assignment and Initialization Are Different 41
Item 13: Copy Operations 45
Item 14: Function Pointers 49
Item 15: Pointers to Class Members Are Not Pointers 53
Item 16: Pointers to Member Functions Are Not Pointers 57
Item 17: Dealing with Function and Array Declarators 61
Item 18: Function Objects 63
Item 19: Commands and Hollywood 67
Item 20: STL Function Objects 71
Item 21: Overloading and Overriding Are Different 75
Item 22: Template Method 77
Item 23: Namespaces 81
Item 24: Member Function Lookup 87
Item 25: Argument Dependent Lookup 89
Item 26: Operator Function Lookup 91
Item 27: Capability Queries 93
Item 28: Meaning of Pointer Comparison 97
Item 29: Virtual Constructors and Prototype 99
Item 30: Factory Method 103
Item 31: Covariant Return Types 107
Item 32: Preventing Copying 111
Item 33: Manufacturing Abstract Bases 113
Item 34: Restricting Heap Allocation 117
Item 35: Placement New 119
Item 36: Class-Specific Memory Management 123
Item 37: Array Allocation 127
Item 38: Exception Safety Axioms 131
Item 39: Exception Safe Functions 135
Item 40: RAII 139
Item 41: New, Constructors, and Exceptions 143
Item 42: Smart Pointers 145
Item 43: auto_ptr Is Unusual 147
Item 44: Pointer Arithmetic 149
Item 45: Template Terminology 153
Item 46: Class Template Explicit Specialization 155
Item 47: Template Partial Specialization 161
Item 48: Class Template Member Specialization 165
Item 49: Disambiguating with Typename 169
Item 50: Member Templates 173
Item 51: Disambiguating with Template 179
Item 52: Specializing for Type Information 183
Item 53: Embedded Type Information 189
Item 54: Traits 193
Item 55: Template Template Parameters 199
Item 56: Policies 205
Item 57: Template Argument Deduction 209
Item 58: Overloading Function Templates 213
Item 59: SFINAE 217
Item 60: Generic Algorithms 221
Item 61: You Instantiate What You Use 225
Item 62: Include Guards 229
Item 63: Optional Keywords 231

Bibliography 235
Index 237
Index of Code Examples 245

商品描述(中文翻譯)

目錄:
前言 xi
致謝 xvii
關於排版慣例的說明 xix

第一項:資料抽象 1
第二項:多型性 3
第三項:設計模式 7
第四項:標準模板庫 11
第五項:引用是別名,不是指標 13
第六項:陣列形式參數 17
第七項:常數指標和指向常數的指標 21
第八項:指向指標的指標 25
第九項:新的轉型運算子 29
第十項:常數成員函數的意義 33
第十一項:編譯器將東西放入類別中 37
第十二項:賦值和初始化是不同的 41
第十三項:複製操作 45
第十四項:函數指標 49
第十五項:類別成員指標不是指標 53
第十六項:成員函數指標不是指標 57
第十七項:處理函數和陣列聲明符 61
第十八項:函數物件 63
第十九項:命令和好萊塢 67
第二十項:STL 函數物件 71
第二十一項:重載和覆寫是不同的 75
第二十二項:模板方法 77
第二十三項:命名空間 81
第二十四項:成員函數查找 87
第二十五項:引數相依查找 89
第二十六項:運算子函數查找 91
第二十七項:能力查詢 93
第二十八項:指標比較的意義 97
第二十九項:虛構建構函數和原型 99
第三十項:工廠方法 103
第三十一項:協變返回類型 107
第三十二項:防止複製 111
第三十三項:製造抽象基類 113
第三十四項:限制堆分配 117
第三十五項:放置 new 119
第三十六項:類別特定的記憶體管理 123
第三十七項:陣列分配 127
第三十八項:例外安全公理 131
第三十九項:例外安全函數 135
第四十項:RAII 139
第四十一項:new、建構函數和例外 143
第四十二項:智能指標 145
第四十三項:auto_ptr 是不尋常的 147
第四十四項:指標算術 149
第四十五項:模板術語 153
第四十六項:類別模板明確特化 155
第四十七項:模板部分特化 161
第四十八項:類別模板成員特化 165
第四十九項:用 typename 消除歧義 169
第五十項:成員模板 173
第五十一項:用 template 消除歧義 179
第五十二項:針對型別資訊進行特化 183
第五十三項:嵌入式型別資訊 189
第五十四項:特性 193
第五十五項:模板模板參數 199
第五十六項:策略 205
第五十七項:模板引數推斷 209
第五十八項:重載函數模板 213
第五十九項:SFINAE 217
第六十項:通用演算法 221
第六十一項:你使用什麼就實例化什麼 225
第六十二項:包含保護 229
第六十三項:可選關鍵字 231

參考文獻 235
索引 237
程式碼範例索引 245