What is function template and what are its advantges?
Answers
Answered by
0
Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type. In C++ this can be achieved using template parameters.
Similar questions
Math,
7 months ago
Math,
7 months ago
English,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago