Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of templates?

Answer Posted / aboelella

Template is used to optimize code
instead of implementing the same code for multiple data
types, template works as a way to declare classes and
functions and then to be implemented with different data types

It is dependent on the data structure used to substitute the
template

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the difference between delete and delete[].

1107


What is a far pointer? where we use it?

1077


What is std :: flush?

1071


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1127


Explain pass by value and pass by reference.

1057


Is it possible to have a recursive inline function in c++?

1030


What is difference between malloc()/free() and new/delete?

1170


Is c++ map a hash table?

1026


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1116


What is lambda expression c++?

1058


How do you define/declare constants in c++?

1054


When does a 'this' pointer get created?

1095


Can constructor be static in c++?

1114


What is void pointer in c++ with example?

1097


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

998