请高手对下列模板详解一下!!!
template <typename ClassT, typename FuncPtrT>
class sort_stub_ref_impl
{
public:
sort_stub_ref_impl(const ClassT& p, const FuncPtrT& f)
: m_p(p)
, m_f(f)
{}
template <typename T>
const bool
operator()(T *a, T *b) const
{
return (m_p.*m_f)(a, b); //尤其是这行代码
}
private:
const ClassT &m_p; //还有这行代码
FuncPtrT m_f;
};