title: C++ Template class using STL container and a typedef
body: <p>I have a class looking like this:</p>
  
  <pre><code>#include &lt;vector&gt;
  #include "record.h"
  #include "sortcalls.h"
  
  template&lt;
      typename T,
      template&lt;typename , typename Allocator = std::allocator&lt;T&gt; &gt; class Cont = std::vector&gt;
  class Sort: public SortCall {
  </code></pre>
  
  <p>This code is working and I'm calling it like this from other classes:</p>
  
  <pre><code>Comparator c; // comparison functor
  Sort&lt; Record, std::vector &gt; s(c);
  </code></pre>
  
  <p>Now I want to be able to switch the containers to another container, say a list.
  So I thought a typedef would be neat. It should be something like</p>
  
  <pre><code>typedef std::vector&lt;Record&gt; container;  // Default record container
  
  template&lt;
      typename T,
      template&lt; typename, typename container &gt; // ???
  class Sort: public SortCall {
  </code></pre>