title: C++ Passing a tempate typename class as function parameter
body: <p>I need to pass a template  class as parameter to a function but i can retrieve the typename inside the function for initialize a temporal variable </p>
  
  <p>the class is declared as follows:</p>
  
  <pre><code>template &lt;typename Type&gt; class ListIndex_Linked
  </code></pre>
  
  <p>here is the inicialization of the class in the main and the call of the function</p>
  
  <pre><code>ListIndex_Linked&lt;std::string&gt; L;
  insertion(L);
  </code></pre>
  
  <p>and what i'm trying to do</p>
  
  <pre><code>template &lt;class list &lt;typename Type&gt;&gt;
  void insertion( list&lt;Type&gt;&amp; L ) 
  {
      Type&amp; temp = L.get(0); 
      {
          int max = L.numElem();
          for ( int i = 1, ; i &lt; max; i++ )
          {
  
          }
      }
  }
  </code></pre>
  
  <p>but i get this error:</p>
  
  <pre><code>error: 'list' is not a template
  void insertion( list&lt;Type&gt;&amp; L )
               ^
  </code></pre>
  
  <p>thanks in advance for the help</p>