Home > DeveloperSection > Forums > What is generic function in c plus plus ?
Ida B Wells
Ida B Wells

Total Post:30

Points:210
Posted on    June-13-2013 7:50 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 865  View(s)
Rate this:
Hi Developers,

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

Thanks in advance. 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-14-2013 1:56 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick