title: How do I assign an alias to a function name in C++?
body: <p>It's easy to create a new name for a type, a variable or a namespace. But how do I assign a new name to a function? For example, I want to use the name <code>holler</code> for <code>printf</code>. #define is obvious... any other way?</p>
  
  <p><strong>Solutions:</strong></p>
  
  <ol>
  <li><code>#define holler printf</code></li>
  <li><code>void (*p)() = fn; //function pointer</code></li>
  <li><code>void (&amp;r)() = fn; //function reference</code></li>
  <li><code>inline void g(){ f(); }</code></li>
  </ol>