title: How to pass reference-to-function into another function
body: <p>I have been reading about function pointers and about using them as parameters for other functions.</p>
  <p>My question is how would you pass a function by reference without using pointers? I have been trying to find the answer on the Internet but I haven't found a good answer.</p>
  <p>I know that you can pass variables by reference like this: <code>void funct(int&amp; anInt);</code>. How would you do something similar to this, but instead of a reference to a variable, a reference to a function was the parameter?</p>
  <p>Also, how would you use a reference to the function in a function body?</p>