-
Book Overview & Buying
-
Table Of Contents
C++ Memory Management
By :
Whew, this was a long chapter! We implemented a naïve vector-like container, then a naïve forward_list-like container, and then took another look at the vector-like container (we will return to the forward_list-like container in the next two chapters) to show how tighter control over memory can lead to more efficient containers.
Our implementations in this chapter were “manual,” in the sense that we did the memory management by hand. That involved writing a lot of code, something we will reconsider in Chapter 13. In Chapter 14, we will examine how allocators interact with containers, and will use this opportunity to revisit our forward_list-like container as there will be interesting aspects to examine as we continue our adventure through memory management in C++.
Unlock this book’s exclusive benefits nowThis book comes with additional benefits designed to elevate your learning experience... |