Could anyone help me understand how do you decide whether to use templates or overloaded function? I was asked this question in an interview and couldn't answer. This is the scenario:
Given an algorithm, how do you decide whether to use a template method or overloaded function?
Thanks for your insights!