A function that does the same operation on different data types is to be implemented using function templates.