title: How to assign alias to template function in C++?
body: <p>I am writing a few mathematical functions for C++ and have just learned to use template functions so I don't have to make loads of overloaded copies of a simple function for all the different types.
  I have made a test program that has all the different types I'm likely to use and runs each one through the function to check they all work ok.</p>
  <p>What I want to do now is assign an alias to one of my template functions to call it with a different name, so I can write new functions and run them through the test by changing the alias to be the new function rather than going through the whole code with find and replace to change to the new function I want to test.</p>
  <p>I have tried <a href="http://www.cplusplus.com/forum/beginner/162360/" rel="nofollow noreferrer">this</a></p>
  <pre><code>template &lt;typename T&gt; using B = A&lt;T&gt;;
  </code></pre>
  <p>and <a href="https://stackoverflow.com/questions/3053561/how-do-i-assign-an-alias-to-a-function-name-in-c">this</a></p>
  <pre><code>template&lt;typename T&gt;
  constexpr auto alias_to_old = old_function&lt;T&gt;;
  </code></pre>
  <p>but they both throw errors.</p>
  <p>Please note I am pretty much a beginner at C++ so don't use jargon in your answers, and clear examples would be appreciated.</p>
  <p>Thanks!</p>