Table of Contents for
A Tour of C++

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition A Tour of C++ by Bjarne Stroustrup Published by Addison-Wesley Professional, 2018
  1. Contents
  2. Cover
  3. About This eBook
  4. A Tour of C++
  5. Title Page
  6. Copyright Page
  7. Contents
  8. Preface
  9. 1 The Basics
  10. 2 User-Defined Types
  11. 3 Modularity
  12. 4 Classes
  13. 5 Essential Operations
  14. 6 Templates
  15. 7 Concepts and Generic Programming
  16. 8 Library Overview
  17. 9 Strings and Regular Expressions
  18. 10 Input and Output
  19. 11 Containers
  20. 12 Algorithms
  21. 13 Utilities
  22. 14 Numerics
  23. 15 Concurrency
  24. 16 History and Compatibility
  25. Index
  26. A Tour of C++
  27. Code Snippets
  28. Code Snippets
  29. Code Snippets
  30. Code Snippets
  31. Code Snippets
  32. Code Snippets
  33. Code Snippets
  34. Code Snippets
  35. Code Snippets
  36. Code Snippets
  37. Code Snippets
  38. Code Snippets
  39. Code Snippets
  40. Code Snippets
  41. Code Snippets
  42. Code Snippets

Contents

  1. Cover
  2. About This eBook
  3. Title Page
  4. Copyright Page
  5. Contents
  6. Preface
    1. Acknowledgments
  7. 1 The Basics
    1. 1.1 Introduction
    2. 1.2 Programs
    3. 1.3 Functions
    4. 1.4 Types, Variables, and Arithmetic
    5. 1.5 Scope and Lifetime
    6. 1.6 Constants
    7. 1.7 Pointers, Arrays, and References
    8. 1.8 Tests
    9. 1.9 Mapping to Hardware
    10. 1.10 Advice
  8. 2 User-Defined Types
    1. 2.1 Introduction
    2. 2.2 Structures
    3. 2.3 Classes
    4. 2.4 Unions
    5. 2.5 Enumerations
    6. 2.6 Advice
  9. 3 Modularity
    1. 3.1 Introduction
    2. 3.2 Separate Compilation
    3. 3.3 Modules (C++20)
    4. 3.4 Namespaces
    5. 3.5 Error Handling
    6. 3.6 Function Arguments and Return Values
    7. 3.7 Advice
  10. 4 Classes
    1. 4.1 Introduction
    2. 4.2 Concrete Types
    3. 4.3 Abstract Types
    4. 4.4 Virtual Functions
    5. 4.5 Class Hierarchies
    6. 4.6 Advice
  11. 5 Essential Operations
    1. 5.1 Introduction
    2. 5.2 Copy and Move
    3. 5.3 Resource Management
    4. 5.4 Conventional Operations
    5. 5.5 Advice
  12. 6 Templates
    1. 6.1 Introduction
    2. 6.2 Parameterized Types
    3. 6.3 Parameterized Operations
    4. 6.4 Template Mechanisms
    5. 6.5 Advice
  13. 7 Concepts and Generic Programming
    1. 7.1 Introduction
    2. 7.2 Concepts
    3. 7.3 Generic Programming
    4. 7.4 Variadic Templates
    5. 7.5 Template Compilation Model
    6. 7.6 Advice
  14. 8 Library Overview
    1. 8.1 Introduction
    2. 8.2 Standard-Library Components
    3. 8.3 Standard-Library Headers and Namespace
    4. 8.4 Advice
  15. 9 Strings and Regular Expressions
    1. 9.1 Introduction
    2. 9.2 Strings
    3. 9.3 String Views
    4. 9.4 Regular Expressions
    5. 9.5 Advice
  16. 10 Input and Output
    1. 10.1 Introduction
    2. 10.2 Output
    3. 10.3 Input
    4. 10.4 I/O State
    5. 10.5 I/O of User-Defined Types
    6. 10.6 Formatting
    7. 10.7 File Streams
    8. 10.8 String Streams
    9. 10.9 C-style I/O
    10. 10.10 File System
    11. 10.11 Advice
  17. 11 Containers
    1. 11.1 Introduction
    2. 11.2 vector
    3. 11.3 list
    4. 11.4 map
    5. 11.5 unordered_map
    6. 11.6 Container Overview
    7. 11.7 Advice
  18. 12 Algorithms
    1. 12.1 Introduction
    2. 12.2 Use of Iterators
    3. 12.3 Iterator Types
    4. 12.4 Stream Iterators
    5. 12.5 Predicates
    6. 12.6 Algorithm Overview
    7. 12.7 Concepts (C++20)
    8. 12.8 Container Algorithms
    9. 12.9 Parallel Algorithms
    10. 12.10 Advice
  19. 13 Utilities
    1. 13.1 Introduction
    2. 13.2 Resource Management
    3. 13.3 Range Checking: span
    4. 13.4 Specialized Containers
    5. 13.5 Alternatives
    6. 13.6 Allocators
    7. 13.7 Time
    8. 13.8 Function Adaption
    9. 13.9 Type Functions
    10. 13.10 Advice
  20. 14 Numerics
    1. 14.1 Introduction
    2. 14.2 Mathematical Functions
    3. 14.3 Numerical Algorithms
    4. 14.4 Complex Numbers
    5. 14.5 Random Numbers
    6. 14.6 Vector Arithmetic
    7. 14.7 Numeric Limits
    8. 14.8 Advice
  21. 15 Concurrency
    1. 15.1 Introduction
    2. 15.2 Tasks and threads
    3. 15.3 Passing Arguments
    4. 15.4 Returning Results
    5. 15.5 Sharing Data
    6. 15.6 Waiting for Events
    7. 15.7 Communicating Tasks
    8. 15.8 Advice
  22. 16 History and Compatibility
    1. 16.1 History
    2. 16.2 C++ Feature Evolution
    3. 16.3 C/C++ Compatibility
    4. 16.4 Bibliography
    5. 16.5 Advice
  23. Index
  24. Code Snippets
  1. ii
  2. iii
  3. iv
  4. v
  5. vi
  6. vii
  7. viii
  8. ix
  9. xi
  10. xii
  11. 1
  12. 2
  13. 3
  14. 4
  15. 5
  16. 6
  17. 7
  18. 8
  19. 9
  20. 10
  21. 11
  22. 12
  23. 13
  24. 14
  25. 15
  26. 16
  27. 17
  28. 18
  29. 19
  30. 21
  31. 22
  32. 23
  33. 24
  34. 25
  35. 26
  36. 27
  37. 28
  38. 29
  39. 30
  40. 31
  41. 32
  42. 33
  43. 34
  44. 35
  45. 36
  46. 37
  47. 38
  48. 39
  49. 40
  50. 41
  51. 42
  52. 43
  53. 44
  54. 45
  55. 46
  56. 47
  57. 48
  58. 49
  59. 50
  60. 51
  61. 52
  62. 53
  63. 54
  64. 55
  65. 56
  66. 57
  67. 58
  68. 59
  69. 60
  70. 61
  71. 62
  72. 63
  73. 64
  74. 65
  75. 66
  76. 67
  77. 68
  78. 69
  79. 70
  80. 71
  81. 72
  82. 73
  83. 74
  84. 75
  85. 76
  86. 77
  87. 79
  88. 80
  89. 81
  90. 82
  91. 83
  92. 84
  93. 85
  94. 86
  95. 87
  96. 88
  97. 89
  98. 90
  99. 91
  100. 92
  101. 93
  102. 94
  103. 95
  104. 96
  105. 97
  106. 98
  107. 99
  108. 100
  109. 101
  110. 102
  111. 103
  112. 104
  113. 105
  114. 107
  115. 108
  116. 109
  117. 110
  118. 111
  119. 112
  120. 113
  121. 114
  122. 115
  123. 116
  124. 117
  125. 118
  126. 119
  127. 120
  128. 121
  129. 122
  130. 123
  131. 124
  132. 125
  133. 126
  134. 127
  135. 128
  136. 129
  137. 130
  138. 131
  139. 132
  140. 133
  141. 134
  142. 135
  143. 136
  144. 137
  145. 138
  146. 139
  147. 140
  148. 141
  149. 142
  150. 143
  151. 144
  152. 145
  153. 146
  154. 147
  155. 148
  156. 149
  157. 150
  158. 151
  159. 152
  160. 153
  161. 154
  162. 155
  163. 156
  164. 157
  165. 158
  166. 159
  167. 160
  168. 161
  169. 162
  170. 163
  171. 164
  172. 165
  173. 166
  174. 167
  175. 168
  176. 169
  177. 170
  178. 171
  179. 172
  180. 173
  181. 174
  182. 175
  183. 176
  184. 177
  185. 178
  186. 179
  187. 180
  188. 181
  189. 182
  190. 183
  191. 184
  192. 185
  193. 187
  194. 188
  195. 189
  196. 190
  197. 191
  198. 192
  199. 193
  200. 195
  201. 196
  202. 197
  203. 198
  204. 199
  205. 200
  206. 201
  207. 202
  208. 203
  209. 204
  210. 205
  211. 206
  212. 207
  213. 208
  214. 209
  215. 210
  216. 211
  217. 212
  218. 213
  219. 214
  220. 215
  221. 216
  222. 217
  223. 218
  224. 219
  225. 220
  226. 221
  227. 222
  228. 223
  229. 224
  230. 225
  231. 226
  232. 227
  233. 228
  234. 229
  235. 230
  236. 231
  237. 232
  238. 233
  239. 234
  240. 235
  241. 236
  242. 237
  243. 238
  244. 239
  245. 244
Back to top