2011年3月22日

Typelists(三)

摘要: 类型排序准则(将最深派生放在最前方)Typelists3.h #include "../型别选择/select.h"//for template<class If, class Then, class Else> struct Select;#include "../编译期间侦测可转换性和继承性/Conversion.h"//for #define DERIVE_BASE_CLASS#include "Typelists2.h"//从Tlist中找到T的最深派生类template<class TList, class 阅读全文

posted @ 2011-03-22 20:01 Observer 阅读(208) 评论(0) 推荐(0) 编辑

Typelists(二)

摘要: 定义部分 Typelists2.h #include "Typelists.h"//类型链表的连接/*****两者都是类型(非TypePair),实际上就是TypePair的构造器:*****/template<class T, class U>struct Connect{ typedef Typelists_2(T, U) Result;};template<class T>struct Co... 阅读全文

posted @ 2011-03-22 13:44 Observer 阅读(239) 评论(0) 推荐(0) 编辑

导航