Use of template | Sololearn: Learn to code for FREE!

0

Use of template

Guys I wanted to know what's the use of template type in c++

7/10/2020 5:07:21 AM

Prasad Bankar

2 Answers

New Answer

+8

Nice information pls have a read ; 👌 https://www.tutorialspoint.com/cplusplus/cpp_templates.htm

+5

"Template functions can save a lot of time, because they are written only once, and work with different types. Template functions reduce code maintenance, because duplicate code is reduced significantly.” Taken straight from this lesson: https://www.sololearn.com/learn/CPlusPlus/1914/