类模板运用之实现委托类
#include "header.h"class Test{public:void f( int a ){ cout << "Test:" << a << endl; }};int main(){Test *t = new Test;C<Test, int> c(t, &Test::f );c.invoke(3);delete t;}/*T1:class TestT2:void (__thiscall Test::*)(int)Test:3请按任意键继续. . .*/强大的设计模式啊,超方便的说。。。