Understanding Memory Management, Part 2: C++ and RAII
This is the second post in my planned multipart[1]
series on memory management. In part I
we covered the basics of memory allocation and how it works in
C, where the programmer is responsible for manually allocating
and freeing memory. In this post, we'll start looking at memory
management in C++, which provides a number of much fancier
affordances.
Background: C++ #
As the name suggests,
C++
is a derivative of C. The original version of C++ was basically
an object oriented version of C ("C wit...
Read more at educatedguesswork.org