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

Who created stl?

0 Answers  


What is the name of your birth place?

0 Answers  


What is Constructor

14 Answers   Angel Broking,


write a program to demonstrate,how constructor and deconstructor work under multilevel inheritance

3 Answers   TCS,


In what scenario does the Logical file and Physical file being used?

0 Answers   informatics,


what's the difference between function overloading and function overiding?

5 Answers  


What Is Operator Overloading in C++?

3 Answers  


write a program that input four digit number and find how many 7 that number contains

4 Answers  


Difference between Structure and Class in C++?

5 Answers   Caritor,


How do I convert a stl file?

0 Answers  


sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,


wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value

1 Answers  


Categories