Introduction to Templates
Learn about function templates and how we can use them in C++.
We'll cover the following...
We'll cover the following...
Definition
Templates are the mechanism by which C++ implements the generic concept.
The following example illustrates two non-generic (type-sensitive) functions for multiplying two numbers, x and y: