What is template in C++? tccicomputercoaching.com
Templates are a feature of the C++ programming language that allows functions and classes to operate with generic types. The simple idea is to pass data type as a parameter so that we don’t need to write same code for different data
types. Template allows a function or class to work on many different data types without being rewritten for each one.
For example if we want to sum of two different types of numbers then we have to do individual user defined function for each type of data. This increases time and memory space. But using template function we have to write once generic function, so, it will decrease the length and complexity of programme.
To learn more in detail about template in c++ at TCCI.
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/workshop/