C++ template pragmas

Table 1. C++ template pragmas
Pragma Description
#pragma define, #pragma instantiate (C++ only)

Provides an alternative method for explicitly instantiating a template class.

#pragma do_not_instantiate (C++ only)

Prevents the specified template declaration from being instantiated.

#pragma implementation (C++ only)

For use with the -qtempinc compiler option, supplies the name of the file containing the template definitions corresponding to the template declarations contained in a header file.