Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

7.1 Introducing the Smart Pointer Package

Smart pointers are objects that encapsulate built-in, or raw, pointers. They are useful as building blocks for implementing many idioms, including the handle-body and singleton patterns provided by this package. Smart pointers by themselves are useful for both exception-safe programming and automated garbage collection. Threads.h++ has always used some smart pointers internally, but in this release they have been uncovered and extended for your use.

The Threads.h++ Smart Pointer package provides the following features:

7.1.1 Interpackage Dependencies

The Smart Pointer package depends on the Thread-compatible Exception, Execution Tracing, and Synchronization packages of Threads.h++.

7.1.2 Including the Smart Pointer Header Files

The rw\pointer directory contains a header file for each class, named classname.h. You can also access the declarations for the entire Smart Pointer package through pointer.h, an umbrella file that includes the header files for all the classes.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.