How to expose an array of functions as a class member in C++?
<p>I have to expose an array of functions in my application. These functions are actually methods of that class and I will populate the array in the constructor. For instance:</p>

<pre><code>void Cpu::print() { // some func
    std:cout &lt;&lt; "hi";
}

void Cpu::Cpu() { // class ctor
  funcArray = { &amp;Cpu::print }
}
</code></pre>

<p>Then I want to do this:</p>

<pre><code>Cpu myCpu;
(myCpu.*funcArray[0])();
</code></pre>

<p>All my functions will follow the same signature "void ()".</p>

<p>Is that possible?</p>
