title: Best alternative to a typedef for a function template?
body: <p>What I'd like to do is something like this:</p>
  
  <pre><code>template &lt;class DataType&gt;
  DataType myFunc(DataType in)
  {
     ...
  }
  
  typedef myFunc&lt;int&gt; myFunc_i;
  
  myFunc_i(37);
  </code></pre>
  
  <p>...however, typedefs cannot be used for functions like this in C++.  What I was wondering is... what are people's preferred alternatives in this case? The only ones I can think of are:</p>
  
  <p>1) Just deal with it, and always use myFunc syntax
  2) Manually create a wrapper function, ie</p>
  
  <pre><code>inline int myFunc_i(int in)
  {
      return myFunc&lt;int&gt;(in);
  }
  </code></pre>
  
  <p>This would work, but would have the downside of requiring extra maintenance, and the possibility that it would get out of sync (ie, if you change the function signature for myFunc).</p>
  
  <p>Thoughts?</p>