WEBINAR:
On-Demand
Application Security Testing: An Integral Part of DevOps
As useful as
pointers to member functions are, in certain situationsfor example when using STL algorithmsyou need to use more sophisticated constructs that wrap bare pointers to members and transform them into a slightly different beast.

STL algorithms that take a function argument don't care whether it's a real function, a member function, or a function object, so long as they can use the notation f() to call it. The problem is that you can't call a member function directly; you need to call it for a pointer or an object:
(p->*pmf)(); //invoke through a pointer
(obj.*pmf)(); //invoke through an object
How is it possible, then, to pass only a pointer to a member and have the algorithm call it?

Use the standard set of function adapters to bind a member function to an object or a pointer.