开发者

Must -read articles for C++ memory mangement

开发者 https://www.devze.com 2022-12-17 03:40 出处:网络
After reading \"C++ Memory Management: From Fear to Triumph\" series,I think they aremust-read articles for memory management. I\'d like to know what else must-read articles I shouldn\'t mi开发者_如何

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号