static void (*set_malloc_handler(void(*f)()))()?
template<class T>
class mal{
public:
.........
static void (*set_malloc_handler(void(*f)()))(){
void (*old)()=_malloc_alloc_oom_handler;
_malloc_alloc_oom_handler=f;
return (old);
}
}
哪位大侠 把上面的这个东西详细的解释解释呀 既然 无参数 f 又是怎么调用的啊 怎么传递的 顺便说说这个东东如果在类外定义式是什么样的啊
谢谢了