Table 1-11. Instance Names
Name
a template class name
a template class declaration
a member function name
a static data member name
a static data declaration
a member function declaration
a template function declaration
If instantiation pragmas are not used, the compiler will chose object files
in which to instantiate all required instances automatically during the
prelinking process.
#pragma instantiate instance
The
#pragma instantiate instance
in the current compilation. For example,
instance
#pragma instantiate class Stack<int>
will cause all static members and member functions for the int instance of
a template class Stack to be instantiated, whether they are required in this
compilation or not.
The example,
#pragma instantiate void Stack<int>::push(int)
will cause only the individual member function
to be instantiated.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Parameter
A<int>
class A<int>
A<int>::f
A<int>::I
int A<int>::I
void A<int>::f(int, char)
char* f(int, float)
requests the compiler to instantiate
Stack<int>::push(int)
Compiler
1-135
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers