ILE C/C++ Programmer's Guide

How the ILE Template Registry Option Works

The template registry:

The template registry designates a single module to contain the definition of a template instantiation.

During initial compilation, any template definitions or instantiations that are encountered are expanded and the template registry is updated with the location of the expansion in the module. If a template instantiation is required during subsequent compilations, the compiler checks the template registry to see if an instance already exists in another module. If so, it does not create a new instantiation, but does create a new reference. This ensures that only one definition is provided during the linking phase.


[ Top of Page | Previous Page | Next Page | Table of Contents ]