A short and basic summary of C++'s view of memory management: You can worry about it a lot less, and still be efficient, if you say who owns what.
Goodness in programming languages, part 4 -- Ownership & Memory
by Andy Balaam
From the post:
... over time the community of C++ programmers has been developing a new way of thinking about memory, and developing tools in the C++ language to make it easier to work in this way.
Modern C++ code rarely or never uses “delete” or “free” to deallocate memory, but instead defines clearly which object owns each other object. ...
Add a Comment
Comments are closed.