C++ template options
You can use the options in Table 1 to control how the C++ compiler handles templates.
| Option | Description | C Compile | C++ Compile | IPA Link | More Information |
|---|---|---|---|---|---|
| FASTTEMPINC | Defers generation of object code until the final version of all template definitions have been determined. | ✓ | See detail | ||
| TEMPINC | Generates separate template instantiation files for template functions and class declarations, and places these files in a directory or PDS, which can be optionally specified. | ✓ | See detail | ||
| TEMPLATEDEPTH | Specifies the maximum number of recursively instantiated template specializations that are processed by the compiler. | ✓ | See detail | ||
| TEMPLATERECOMPILE | Helps to manage dependencies between compilation units that have been compiled using the TEMPLATEREGISTRY option. | ✓ | See detail | ||
| TEMPLATEREGISTRY | Maintains records of all templates as they are encountered in the source and is designed to ensure that only one instantiation of each template is made. | ✓ | ✓ | See detail | |
| TMPLPARSE | Controls whether parsing and semantic checking are applied to template definitions or only to template instantiations. | ✓ | See detail |