Computer Science, asked by heeras136, 1 year ago

The actual source code for implementing a template function is created when

Answers

Answered by writersparadise
0

The answer is the function is invoked.

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