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 |
Who created stl?
What is the name of your birth place?
What is Constructor
write a program to demonstrate,how constructor and deconstructor work under multilevel inheritance
In what scenario does the Logical file and Physical file being used?
what's the difference between function overloading and function overiding?
What Is Operator Overloading in C++?
write a program that input four digit number and find how many 7 that number contains
Difference between Structure and Class in C++?
How do I convert a stl file?
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