Boost logo

Boost :

From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2007-07-16 17:17:09


Hi,

I've seen typelist somewhere. I'm wondering if it is defined in boost?

Thanks,
Peng

struct ListEnd_ {};

template< typename THead, typename TTail = ListEnd_ >
struct TypeList_
{
  typedef THead item;
  typedef TTail next;
};

class Rect_;
class Square_;
class Triangle_;
class RightTriangle_;

typedef TypeList_< Rect_,
        TypeList_< Square_,
        TypeList_< Triangle_,
        TypeList_< RightTriangle_
> > > > Shapes_;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk