March 2025
Intermediate to advanced
442 pages
11h 16m
English
We are progressing in our exploration of memory management with C++. In Chapter 7, we explored the various syntactic ways in which one can overload operator new() and operator delete() (as well as their array counterparts), and in Chapter 8, we wrote an actual, real-life example (a memory leak detector) relying on the capacity to write such overloads. It’s a nice start, showing concretely that this knowledge has practical uses, but you might (rightfully) wonder what else we can do when controlling memory management facilities.
This chapter will be slightly different from the others. What we will do here is present a non-exhaustive set of ways in which one can benefit from taking control of the memory allocation ...
Read now
Unlock full access