After reading "C++ Memory Management: From Fear to Triumph" series, I think they are must-read articles for memory management. I'd like to know what else must-read articles I shouldn't mi开发者_如何学Goss.
Thanks!
Herb sutter's treatment on Memory Management in his books "Exceptional C++" and "More Exceptional C++".
Read and learn well about RAII idiom, Resource Acquisition Is Initialization from articles like the two below:
- Memory and Resource Management by Stephen C. Dewhurst
- Resource Acquisition is Initialization - Modern C++ Style - A Conversation with Bjarne Stroustrup, Part II
Although not really an article, I think the Boost smart_ptr library documentation has some good information on C++ memory management. It is of course biased to the Boost library but I think you will get some good ideas out of it.
Some basics:
Memory as a Programming Concept in C and C++
Frantisek Franek
Cambridge University Press
ISBN 0-521-52043-6
Andrei Alexandrescu has also something to say in his Modern C++ Design Book. You'd probably interested in
- Chapter 4. Small-Object Allocation
- Chapter 7. Smart Pointers
Despite the fact that practical value of Andrei's techniques considered controversial, you definitely will learn some new and interesting stuff from this book.
精彩评论