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 |
What do you mean by stl?
What is a standard template library (stl)? What are the various types of stl containers?
Is stl open source?
Write a program in C/C++ to implement reader- writer problem
why we are using the fork command?.. how it works?
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
what is the acronym of the term 'C.O.M.P.U.T.E.R' ?
17 Answers Config Systems, Google, Wipro,
differentiate between private, public and protected data members of the class using example.
what's the difference between function overloading and function overiding?
In what scenario does the Logical file and Physical file being used?
How connect plc and pc through software