If you have to allocate storage, do so inside a class where it is easy to track. For example, THashTable allocates subsidiary data structures (the hash table) that are invisible to clients. You can also use a surrogate that does reference counting to allocate and deallocate real objects (see "Surrogate objects" on page 121).
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker