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 Template Specialization?



What is Template Specialization?..

Answer / bob

there are partial and full specializations for template
class, and only full partial specialization for template
function.

template <class T, size_t size>
class Object {};

full specialization:
template <> class Object<int, 10> {};

partial specialization:
template <size_t size> class Object<char, size> {};

Function specialization:
template <typename T>
void reserve(T begin, T end)

Specialization:
void reserver(char *begin, char *end) //actually overload
function

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More STL Interview Questions

what are you now programming Languages C+

1 Answers   HCL,


give me the defination of inheritance?

5 Answers   Infosys,


When did c++ add stl?

0 Answers  


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

0 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


What is a stl vector?

0 Answers  


what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?

2 Answers  


WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

1 Answers   Syntel,


i want a road rash 3d game code if some one know please help me

1 Answers  


What is 2*2?

7 Answers  


c# support late binding or early binding.

6 Answers  


how to making game in c++ ?

0 Answers  


Categories