Class Templates in C++

February 2, 2017 Dhiraj 0

Class Template: As you might have seen the advantage of function template is that, the code gets compact, also by writing less number of lines of code(LoC), we can achieve our desired feature from a function template. On the other […]

Function Templates in C++

February 1, 2017 Dhiraj 1

Templates in C++: Writing a function or a class that can work for family of functions or classes is known as generic programming. C++ supports this concept with the feature known as templates. Function Template: Writing a function that can […]