WHAT IS GENERIC FUNCTION IN C PLUS PLUS ?

Ida B Wells

Total Post:30

Points:210
Posted by  Ida B Wells
 1200  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. AVADHESH PATEL

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!