title: C++ implement generic class
body: <p>I am trying to create a generic class in C++ but I am getting the error "expected constructor, destructor, or type conversion before '&lt;' token " on lines 6, 16, 19... </p>
  
  <p>I am just creating a simple class and pretty sure I can go on from there. Here is the sample code I am dealing with:</p>
  
  <pre><code>using namespace std;
  
  //line 6  
  generic &lt; class T&gt;  
  class Table  
  {  
   friend class Table;  
          Table&lt; T&gt; *LT;  
          LT_Node* cursor;  
  
   public:  
          Table();    
          ~Table();  
          Table(const Table  &amp; source);  
          Table&amp; operator =(const Table&amp; rhs);  
  };
  
  //line 16  
  generic &lt; class T&gt;  
  Table&lt; T&gt;::Table(){}
  
  //line 19  
  generic &lt; class T&gt;  
  Table&lt; T&gt;::~Table(){}
  
  generic &lt; class T&gt;  
  Table&lt; T&gt;::Table(const Table  &amp; source){}
  
  generic &lt; class T&gt;  
  Table::Table&amp; operator =(const Table&amp; rhs){}
  </code></pre>
  
  <p>Thanks in advance!</p>