摘要:
//模板类Comparetemplate<class T1, class T2>struct Compare{ bool eq(T1 a, T2 b) { return ParamTraits<T1,T2>::Equal(a,b); }};//全特化template<>struct Compare<int, int>{ bool eq(int a, int b);};//偏特化template<class T>struct Compare<int, T>{ bool eq(int,T);};//模板特化template&l 阅读全文
posted @ 2012-02-11 19:41 theEagles 阅读(245) 评论(0) 推荐(0)
浙公网安备 33010602011771号