title: class template requires template argument list
body: <p>I got the error-  keyedcollection.h(34): error C2955: 'KeyedCollection' : use of class template requires template argument list</p>
  
  <p>I have searched google and other sites for hours and am still not able to find any solution to this problem. Is there any suggestions as to what I can do?</p>
  
  <p>Declaration:</p>
  
  <pre><code>  friend ostream&amp; operator&lt;&lt;(ostream&amp;, const KeyedCollection&amp;);
  </code></pre>
  
  <p>Definition:</p>
  
  <pre><code>  template &lt;class K, class T&gt; 
  ostream&amp; operator&lt;&lt;(ostream&amp; out, const KeyedCollection&amp; e){
      for (int i = 0; i &lt; key.size(); i++){ out &lt;&lt; key.at(i); }
      return out;
  }
  </code></pre>