-qtmplinst (C++ only)

Category

Template control

Pragma equivalent

None.

Purpose

Manages the implicit instantiation of templates.

Syntax

Read syntax diagramSkip visual syntax diagram
                     .-auto-----.   
>>- -q--tmplinst--=--+-always---+------------------------------><
                     +-noinline-+   
                     '-none-----'   

Defaults

-qtmplinst=auto

Parameters

always
Instructs the compiler to always perform implicit instantiation. If specified, -qtempinc and -qtemplateregistry compiler options are ignored.
auto
Manages the implicit instantiations according to the -qtempinc and -qtemplateregistry options. If both -qtempinc and -qtemplateregistry are disabled, implicit instantiation will always be performed; otherwise if one of the options is enabled, the compiler manages the implicit instantiation according to that option.
noinline
Instructs the compiler to not perform any implicit instantiations. If specified, the -qtempinc and -qtemplateregistry compiler options are ignored.
none
Instructs the compiler to instantiate only inline functions. No other implicit instantiation is performed. If specified, -qtempinc and -qtemplateregistry compiler options are ignored.

Usage

You can also use #pragma do_not_instantiate to suppress implicit instantiation of selected template classes. See #pragma do_not_instantiate (C++ only).

Predefined macros

None.

Related information