Explain the importance of class template with example.
Answers
Answered by
0
Hello ,ur answer is given below:-
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
Geography,
6 months ago
Hindi,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago