The actual source code for implementing a template function is created when
Answers
Answered by
0
The actual source code for implementing a template function is created when the function is invoked.
A template in C++ helps the classes and functions to operate using generic types. In other words, this allows the same class or function to work with various data types and avoids the need of multiple classes or functions to be rewritten for each data type.
There are three types of templates – function templates, variable templates and class templates.
Similar questions