title: Passing a template class as an argument to a function
body: <p>If I define a class using a template such as</p>
  
  <pre><code>template&lt;class K, class V&gt;
  class myclass {
  ...
  };
  </code></pre>
  
  <p>is there a way to pass objects defined by myclass to functions without using a template for the function?  In order words, for every function that accepts myclass objects, does it also need to be defined using template&lt; class K, class V> ? </p>
  
  <p>The main reason for this is that I would like define a set of static functions that act on myclass objects so that I may limit the scope of these functions within their cpp files and not in header files.  </p>