O'Reilly logo

Extended STL, Volume 1: Collections and Iterators by Matthew Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required