| About the Authors |
|
xv | |
| About the Technical Reviewer |
|
xvii | |
| Introduction |
|
xix | |
| Chapter 1 Numerics and Math |
|
1 | (22) |
|
Common Mathematical Functions <cmath> |
|
|
1 | (4) |
|
|
|
1 | (1) |
|
Exponential and Logarithmic Functions |
|
|
2 | (1) |
|
|
|
2 | (1) |
|
Trigonometric and Hyperbolic Functions |
|
|
2 | (1) |
|
Error and Gamma Functions |
|
|
3 | (1) |
|
Integral Rounding of Floating-Point Numbers |
|
|
3 | (1) |
|
Floating-Point Manipulation Functions |
|
|
3 | (1) |
|
Classification and Comparison Functions |
|
|
4 | (1) |
|
|
|
5 | (1) |
|
Fixed-Width Integer Types <cstdint> |
|
|
5 | (1) |
|
Arithmetic Type Properties <limits> |
|
|
5 | (3) |
|
Complex Numbers <complex> |
|
|
8 | (1) |
|
Compile-Time Rational Numbers <ratio> |
|
|
9 | (1) |
|
|
|
10 | (7) |
|
|
|
10 | (3) |
|
Random Number Distributions |
|
|
13 | (4) |
|
Numeric Arrays <valarray> |
|
|
17 | (6) |
|
|
|
19 | (1) |
|
|
|
20 | (1) |
|
|
|
21 | (1) |
|
|
|
21 | (2) |
| Chapter 2 General Utilities |
|
23 | (28) |
|
Moving, Forwarding, Swapping <utility> |
|
|
23 | (3) |
|
|
|
23 | (2) |
|
|
|
25 | (1) |
|
|
|
26 | (1) |
|
|
|
26 | (2) |
|
|
|
26 | (1) |
|
|
|
27 | (1) |
|
Relational Operators <utility> |
|
|
28 | (1) |
|
|
|
28 | (5) |
|
Exclusive-Ownership Pointers |
|
|
29 | (2) |
|
Shared-Ownership Pointers |
|
|
31 | (2) |
|
Function Objects <functional> |
|
|
33 | (6) |
|
|
|
34 | (1) |
|
|
|
34 | (1) |
|
Generic Function Wrappers |
|
|
35 | (1) |
|
Binding Function Arguments |
|
|
36 | (1) |
|
Functors for Class Members |
|
|
37 | (2) |
|
Initializer Lists <initializer_list> |
|
|
39 | (1) |
|
Date and Time Utilities <chrono> |
|
|
39 | (6) |
|
|
|
40 | (1) |
|
|
|
41 | (1) |
|
|
|
41 | (1) |
|
C-style Date and lime Utilities < ctime> |
|
|
42 | (3) |
|
C-Style File Utilities <cstdio> |
|
|
45 | (1) |
|
|
|
45 | (6) |
|
Runtime Type Identification <typeinfo> , <typeindex> |
|
|
45 | (1) |
|
Type Traits <type_traits> |
|
|
46 | (5) |
| Chapter 3 Containers |
|
51 | (30) |
|
|
|
51 | (3) |
|
|
|
52 | (1) |
|
Non-Member Functions to Get Iterators |
|
|
53 | (1) |
|
Non-Member Operations on Iterators |
|
|
54 | (1) |
|
|
|
54 | (13) |
|
|
|
54 | (6) |
|
|
|
60 | (1) |
|
|
|
60 | (1) |
|
std::list and std::forward_list <list> , <forward_list> |
|
|
61 | (2) |
|
Sequential Containers Reference |
|
|
63 | (3) |
|
|
|
66 | (1) |
|
|
|
67 | (4) |
|
|
|
68 | (1) |
|
std::priority_queue <queue> |
|
|
68 | (1) |
|
|
|
69 | (1) |
|
|
|
69 | (1) |
|
|
|
70 | (1) |
|
Ordered Associative Containers |
|
|
71 | (4) |
|
std::map and std::multimap <map> |
|
|
71 | (1) |
|
std::set and std::multiset <set> |
|
|
72 | (1) |
|
|
|
72 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
73 | (2) |
|
Unordered Associative Containers... <unordered_map> , <unordered_set> |
|
|
75 | (4) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
76 | (1) |
|
|
|
77 | (1) |
|
|
|
77 | (2) |
|
|
|
79 | (2) |
| Chapter 4 Algorithms |
|
81 | (20) |
|
Input and Output Iterators |
|
|
81 | (1) |
|
|
|
82 | (17) |
|
|
|
82 | (1) |
|
|
|
82 | (1) |
|
Applying a Function on a Range |
|
|
83 | (1) |
|
Checking for the Presence of Elements |
|
|
84 | (1) |
|
|
|
84 | (1) |
|
|
|
85 | (1) |
|
|
|
86 | (1) |
|
|
|
87 | (1) |
|
|
|
88 | (1) |
|
|
|
88 | (1) |
|
|
|
89 | (1) |
|
|
|
90 | (1) |
|
|
|
91 | (1) |
|
|
|
92 | (1) |
|
|
|
93 | (1) |
|
|
|
94 | (1) |
|
Operations on Sorted Ranges |
|
|
95 | (1) |
|
|
|
96 | (1) |
|
|
|
97 | (1) |
|
Numeric Algorithms <numeric> |
|
|
98 | (1) |
|
Iterator Adaptors <iterator> |
|
|
99 | (2) |
| Chapter 5 Stream I/O |
|
101 | (24) |
|
Input and Output with Streams |
|
|
101 | (11) |
|
|
|
102 | (1) |
|
|
|
103 | (2) |
|
I/O Manipulators <ios> , <iomanip> |
|
|
105 | (1) |
|
|
|
106 | (1) |
|
|
|
106 | (2) |
|
|
|
108 | (2) |
|
|
|
110 | (2) |
|
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
113 | (1) |
|
|
|
113 | (2) |
|
|
|
114 | (1) |
|
operator << and >> for Custom Types |
|
|
115 | (1) |
|
Stream Iterators <iterator> |
|
|
115 | (2) |
|
|
|
115 | (1) |
|
|
|
116 | (1) |
|
Stream Buffers <streambuf> |
|
|
117 | (1) |
|
C-Style Output and Input <cstdio> |
|
|
117 | (8) |
|
|
|
118 | (4) |
|
|
|
122 | (3) |
| Chapter 6 Characters and Strings |
|
125 | (36) |
|
|
|
125 | (5) |
|
|
|
126 | (1) |
|
|
|
127 | (1) |
|
|
|
128 | (1) |
|
|
|
128 | (1) |
|
|
|
128 | (1) |
|
|
|
129 | (1) |
|
|
|
129 | (1) |
|
Character Classification <cctype> , <ciatype> |
|
|
130 | (1) |
|
Character-Encoding Conversion <locale> , <codecirt> |
|
|
131 | (3) |
|
|
|
134 | (14) |
|
|
|
134 | (1) |
|
|
|
135 | (1) |
|
Basic std::locale Members |
|
|
136 | (1) |
|
|
|
136 | (9) |
|
Combining and Customizing Locales |
|
|
145 | (2) |
|
|
|
147 | (1) |
|
Regular Expressions tregen |
|
|
148 | (13) |
|
The ECMAScript Regular Expression Grammar |
|
|
149 | (4) |
|
Regular Expression Objects |
|
|
153 | (2) |
|
Matching and Searching Patterns |
|
|
155 | (3) |
|
|
|
158 | (1) |
|
|
|
159 | (2) |
| Chapter 7 Concurrency |
|
161 | (22) |
|
|
|
161 | (3) |
|
|
|
161 | (1) |
|
|
|
162 | (1) |
|
|
|
162 | (1) |
|
|
|
163 | (1) |
|
|
|
163 | (1) |
|
|
|
164 | (4) |
|
|
|
164 | (1) |
|
|
|
165 | (2) |
|
|
|
167 | (1) |
|
|
|
168 | (6) |
|
|
|
168 | (2) |
|
|
|
170 | (1) |
|
|
|
171 | (1) |
|
|
|
172 | (1) |
|
|
|
173 | (1) |
|
Calling a Function Once <mutex> |
|
|
173 | (1) |
|
Condition Variables <condition_variable> |
|
|
174 | (2) |
|
|
|
174 | (1) |
|
|
|
175 | (1) |
|
|
|
176 | (1) |
|
|
|
176 | (2) |
|
Atomic Operations <atomic> |
|
|
178 | (5) |
|
|
|
178 | (3) |
|
|
|
181 | (1) |
|
|
|
181 | (1) |
|
|
|
182 | (1) |
| Chapter 8 Diagnostics |
|
183 | (12) |
|
|
|
183 | (1) |
|
Exceptions <exception> , <stdexcept> |
|
|
184 | (1) |
|
Exception Pointers <exception> |
|
|
184 | (2) |
|
Nested Exceptions <exception> |
|
|
186 | (1) |
|
System Errors <system_error> |
|
|
187 | (3) |
|
|
|
188 | (1) |
|
|
|
188 | (1) |
|
|
|
189 | (1) |
|
|
|
190 | (1) |
|
Failure Handling <exception> |
|
|
190 | (5) |
|
std::uncaught_exception() |
|
|
190 | (1) |
|
|
|
191 | (1) |
|
|
|
191 | (4) |
| Appendix A: Standard Library Headers |
|
195 | (6) |
|
Numerics and Math (Chapter 1) |
|
|
195 | (1) |
|
General Utilities (Chapter 2) |
|
|
196 | (1) |
|
|
|
197 | (1) |
|
|
|
197 | (1) |
|
|
|
198 | (1) |
|
Characters and Strings (Chapter 6) |
|
|
199 | (1) |
|
|
|
199 | (1) |
|
|
|
200 | (1) |
|
|
|
200 | (1) |
| Index |
|
201 | |