ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  STL
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is Template Specialization?
 Question Submitted By :: Jayant
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Template Specialization?
Answer
# 1
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 ?    0 Yes 0 No
Bob
 

 
 
 
Other STL Interview Questions
 
  Question Asked @ Answers
 
if 4-5 year old brother is standing on d roof with me and watching d moon, suddenly moon coverd by cloud then how will i explain d hiding of moon to my brother. MBT6
Waht is inheritance  4
Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"  2
what is strcture i++ i ++i answer to this i=5 what is the out put  5
In what cases using of a 'template' is a better approach then using of a 'base class'? Lucent6
c# support late binding or early binding.  3
what is a template? BITS2
Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list Sun-Microsystems15
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?  1
What is the underlying datastructure of map? Siemens4
what is use of for loop? Wipro7
what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?  3
How the STL's are implemented, What the difference between templates and STL? Symphony1
what's the difference between function overloading and function overiding?  2
What is the Difference between CArray and CList? Siemens1
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1 Sun-Microsystems3
write a piece of c++ code which allocate memory to the 50 object of type CObj  2
how to overload << and >> operator in c++ Wipro3
What is Object Oriental Progam  1
What is 2*2?  3
 
For more STL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com