11SMART POINTERS
If you want to do a few small things right, do them yourself. If you want to do great things and make a big impact, learn to delegate.—John C. Maxwell
In this chapter, you’ll explore stdlib and Boost libraries. These libraries contain a collection of smart pointers, which manage dynamic objects with the RAII paradigm you learned in Chapter 4. They also facilitate the most powerful resource management model in any programming language. Because some smart pointers use allocators to customize dynamic memory allocation, the chapter also outlines how to provide a user-defined allocator.
Smart Pointers
Dynamic objects have the most ...
Get C++ Crash Course now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.