DEC C++
Using DEC C++ for DIGITAL UNIX Systems


Previous Contents Index

Chapter 4
4 Porting to DEC C++
     4.1     Using Classes
         4.1.1         Friend Declarations
         4.1.2         Member Access
         4.1.3         Base Class Initializers
     4.2     Undefined Global Symbols for Static Data Members
     4.3     Functions and Function Declaration Considerations
     4.4     Using Pointers
         4.4.1         Pointer Conversions
         4.4.2         Bound Pointers
         4.4.3         Constants in Function Returns
         4.4.4         Pointers to Constants
     4.5     Using typedefs
     4.6     Initializing References
     4.7     Using the switch and goto Statements
     4.8     Using Volatile Objects
     4.9     Preprocessing
     4.10     Managing Memory
     4.11     Size-of-Array Argument to delete Operator
     4.12     Flushing the Output Buffer
     4.13     Missing Parenthesis Error Message
     4.14     Segmentation Faults
     4.15     Source File Extensions
     4.16     Incrementing Enumerations
     4.17     Overloading Disambiguation
     4.18     Variables Declared More than Once
     4.19     Guidelines for Writing Clean 64-Bit Code
Chapter 5
5 Using Templates
     5.1     Automatic Instantiation Quick Start
     5.2     Automatic Instantiation Specifics
         5.2.1         Overview of the Instantiation Process
         5.2.2         Command-Line Options Specific to Templates
         5.2.3         Repositories
         5.2.4         Template Declaration File
         5.2.5         Template Definition File
         5.2.6         Name-Mapping File
         5.2.7         Instantiation Source File
             5.2.7.1             Template Definition File Lookup
         5.2.8         Dependency Management
         5.2.9         Building Libraries and Applications That Use Templates
             5.2.9.1             Building a Standalone Library
                 5.2.9.1.1                 Creating a Single Library
                 5.2.9.1.2                 Creating Multiple Libraries
                 5.2.9.1.3                 Using the -ptv Option
             5.2.9.2             Building an Application
                 5.2.9.2.1                 Building from Multiple Source Directories
                 5.2.9.2.2                 Building Against a Standalone Library
             5.2.9.3             Building a Common Instantiation Library
         5.2.10         Useful Conventions
             5.2.10.1             Inline Functions
             5.2.10.2             Specializations
             5.2.10.3             Debugging Instantiations
             5.2.10.4             Linking Applications That Do Not Use Templates
     5.3     Manual Instantiation
         5.3.1         Using the define_template Command-Line Option
         5.3.2         Rules for Manually Instantiating Templates
Chapter 6
6 The C++ Standard Library
     6.1     Important Compatibility Information
     6.2     How to Build Programs Using the C++ Standard Library
     6.3     Incompatibilities Between the DEC C++ Standard Library and the September 1996 ANSI C++ Draft
     6.4     The Standard Template Library
         6.4.1         Examples of Use
         6.4.2         Upgrading from the Nonstandard DEC C++ Class Library
             6.4.2.1             Upgrading from the DEC C++ Class Library Vector to the STL Vector
             6.4.2.2             Upgrading from the DEC C++ Class Library Stack to the STL Stack
         6.4.3         Differences Between STL Tutorial and Reference Guide and the DEC C++ STL
             6.4.3.1             Header File Names
             6.4.3.2             STL Run-Time Support
             6.4.3.3             Guide Examples Need to Be Modified
             6.4.3.4             Differences by Chapter
         6.4.4         Optional Switch to Control Buffering
     6.5     The basic_string Library
         6.5.1         The basic_string Member Functions
             6.5.1.1             Constructors/Destructors/Assignment
             6.5.1.2             Capacity
             6.5.1.3             Element access
             6.5.1.4             Modifiers
             6.5.1.5             Operations
             6.5.1.6             Iterators
         6.5.2         The basic_string Nonmember Functions
         6.5.3         The basic_string typedefs
         6.5.4         Upgrading from Nonstandard DEC C++ String Package Code
         6.5.5         Differences Between the basic_string Library and the Guide string Class
     6.6     Numeric Limits Class
         6.6.1         The numeric_limits Template Class
         6.6.2         Numeric Limits Class Member Functions
         6.6.3         Numeric Limits Class Data Members
         6.6.4         Numeric Limits Class Data Types
     6.7     The auto_ptr Class
         6.7.1         The auto_ptr Member Functions
     6.8     The Standard Exception Library
         6.8.1         Types of Standard Exceptions
         6.8.2         The exception Member Functions
         6.8.3         Derived Exception Classes
     6.9     The Complex Math Library
         6.9.1         Example of Use
         6.9.2         Complex Math Member Functions
         6.9.3         Complex Math Nonmember Functions
         6.9.4         Complex Math Nonmember Operators
         6.9.5         Typedefs
         6.9.6         Unsafe Downcasts
         6.9.7         Upgrading from the Nonstandard Complex Math Library
     6.10     The Allocator Class
         6.10.1         Allocator Class Member Functions
         6.10.2         The allocator_interface Class
         6.10.3         The allocator_interface Member Functions
         6.10.4         Designing Customized Allocators
         6.10.5         Using Custom Allocators with Standard Library Containers
         6.10.6         Implementing Custom Containers that Use the Allocator


Previous Next Contents Index