Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
108 / 187
How can we overload a template functions?
Answer:
A template function may be overloaded either by template function or by the ordinary function of its name. in such cases, the overloading resolution is accomplished by
• Call an ordinary function that has an exact match.
• Call a template function that would be created with an exact match.
• Try normal overloading resolution to ordinary function and call the one that match.
Asked In ::
Nikhila S
23 Feb, 2019 5:07 AM
A template function may be overloaded either by template function or by the ordinary function of its name. in such cases, the overloading resolution is accomplished by
• Call an ordinary function that has an exact match.
• Call a template function that would be created with an exact match.
• Try normal overloading resolution to ordinary function and call the one that match.
• Call an ordinary function that has an exact match.
• Call a template function that would be created with an exact match.
• Try normal overloading resolution to ordinary function and call the one that match.