Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 2490fc2409e43f71a6d82544660cf84c > files > 413

doxygen-1.4.4-1.1.20060mdk.x86_64.rpm


/*! A template class */
template<class T,int i=100> class Test
{
  public:
    Test();
    Test(const Test &);
};

/*! complete specialization */
template<> class Test<void *,200>
{
  public:
    Test();
};

/*! A partial template specialization */
template<class T> class Test<T *> : public Test<void *,200>
{
  public:
    Test();
};

/*! The constructor of the template class*/
template<class T,int i> Test<T,i>::Test() {}

/*! The copy constructor */
template<class T,int i> Test<T,i>::Test(const Test<T,i> &t) {}

/*! The constructor of the partial specilization */
template<class T> Test<T *>::Test() {}

/*! The constructor of the specilization */
template<> Test<void *,200>::Test() {}