What is generic function in c plus plus ?

Total Post:30

Points:210
 1492  View(s)
Ratings:
Rate this:
Hi Developers,

What is generic function in c++? Can you described it in simple and concrete  words.

Thanks in advance. 
  1. Post:604

    Points:4228
    Re: What is generic function in c plus plus ?

    A generic functions defines a generic set of operations that will be to various types of data.A generic function has the type of data that it will operate upon passed to it as a parameter.Using this mechanism,the same general procedure can be applied to a wide range of data. A generic function is created using the keyword template.

Answer