How to Instantiate a Templated Function (131014)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q131014 SUMMARY
There is no built-in way to create an explicit instantiation of a templated
function. Normally, an instantiation is created when the function is called
the first time with a specific type. Subsequent calls to the function with
the same type use the same piece of the code generated before. However, if
you want to instantiate the function without actually calling it, you must
use one of the methods in this article.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbcode kbCompiler kbCPPonly KB131014 |
---|
|