title: Correct template for nested class C++
body: <p>I can't figure out the correct syntax to write a correct template for a nested class. I'd like to do something like this</p>
  
  <pre><code>template &lt;typename T&gt;
  class list {
  private:
      class node {
      public:
          T value;
          node();
          ~node();
      };
  
  public:
      node&lt;T&gt; *H;
      list();
      ~list();
  };
  </code></pre>
  
  <p>I want to have a class to represent each element of the outer class, so I'd like to have the inner class to be hidden inside the outer. Is this possible? Or should I use a different approach?</p>