1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
/*! A template class */
template<class T,int i=100> class Test14
{
public:
Test14();
Test14(const Test14 &);
};
/*! complete specialization */
template<> class Test14<void *,200>
{
public:
Test14();
};
/*! A partial template specialization */
template<class T> class Test14<T *> : public Test14<void *,200>
{
public:
Test14();
};
/*! The constructor of the template class*/
template<class T,int i> Test14<T,i>::Test14() {}
/*! The copy constructor */
template<class T,int i> Test14<T,i>::Test14(const Test14 &t) {}
/*! The constructor of the partial specialization */
template<class T> Test14<T *>::Test14() {}
/*! The constructor of the specialization */
template<> Test14<void *,200>::Test14() {}
|