Chapter 18. Specialized Tools and Techniques

CONTENTS

Section 18.1 Optimizing Memory Allocation 754

Section 18.2 Run-Time Type Identification 772

Section 18.3 Pointer to Class Member 780

Section 18.4 Nested Classes 786

Section 18.5 Union: A Space-Saving Class 792

Section 18.6 Local Classes 796

Section 18.7 Inherently Nonportable Features 797

Chapter Summary 805

Defined Terms 805

The first four parts of this book discussed how to use those parts of C++ that are generally useful. Those features are likely to be used at some point by almost all C++ programmers. In addition, C++ defines some features that are more specialized. Many programmers will never (or only rarely) need to use these features presented in this chapter.

18.1 Optimizing Memory ...

Get C++ Primer, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.