define member function template that receive pointer to other class member function add apply the function
<p>I have a class <code>A</code> which has a member variable <code>vector&lt;B&gt;</code>.  I want to define a function template named <code>DoToAll(funcPtr)</code> that will iterate on all the vector and apply the function.</p>

<pre><code>class A 
{
vector&lt;B&gt; v;
template &lt;?????&gt;
void DoToAll(f);
loop on v and apply the member function f;
}

class B{
void f1();
void f2();
.
.
.
}
</code></pre>

<p>How do I write <code>DoToAll</code>?</p>
