Chapter 24. Adapting MFC’s CArray
Container Family
It has become appallingly obvious that our technology has exceeded our humanity. | ||
--Albert Einstein |
My God, you’ve gotten fat! | ||
--Edna Mole, The Incredibles |
Introduction
In this chapter we look at the adaptation of collections that are fully fledged containers (Section 2.2)—they own their elements, manage their memory, control their lifetimes, and provide operations by which they may be manipulated. For subject matter we’ll be using the array containers from the Microsoft Foundation Classes (MFC) library. Those of you gentle readers who may wish to run away at the mere mention of MFC, please staunch your understandable sentiment. It is the very anachronism of these containers that makes them suitable ...
Get Extended STL, Volume 1: Collections and Iterators 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.