Orb/Doxygen/examples/templ.cpp
changeset 0 42188c7ea2d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Orb/Doxygen/examples/templ.cpp	Thu Jan 21 17:29:01 2010 +0000
@@ -0,0 +1,35 @@
+
+/*! 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) {}
+
+/*! The constructor of the partial specilization */
+template<class T> Test<T *>::Test() {}
+
+/*! The constructor of the specilization */
+template<> Test<void *,200>::Test() {}
+