title: Passing a std container to a templated class
body: <p>Why doesn't this work?</p>
  
  <pre><code>template &lt;typename T, typename U&gt;  
  class TSContainer {  
  private:  
     U&lt;T&gt; container;  
  };
  </code></pre>
  
  <p>called as:</p>
  
  <pre><code>TSContainer&lt;int, std::vector&gt; ts;
  </code></pre>
  
  <p>I think a solution might be:  </p>
  
  <pre><code>template &lt;typename T, template &lt;typename&gt; typename C&gt;  
  class TSContainer  
  {  
          C&lt;T&gt; container;  
  };
  </code></pre>
  
  <p>but that doesn't work either.</p>