comet::make_list<> Struct Template Reference

#include <comet/typelist.h>

List of all members.

Public Types

typedef tl_t< X00, typename
make_list< COMET_LIST_ARG_0
>::result > 
result


Detailed Description

template<COMET_LIST_TEMPLATE>
struct comet::make_list<>

Construct a 'type list' of up to 40 types. A list is a 'head-tail' list terminated by a 'nil' tail struct. It is most easily constructe by using make_list:

The concept of a type-list is that it is either nil or a struct containing a typedef of head to the first element in the list and a typedef of tail to a type-list that contains the rest of the list.

This means that for a type-list LST

                  LST::head
is the first element in the list (assuming it is not nil ) and
                 LST::head::tail::head
would be the second element in the list (assuming LST::head::tail is not nil ), and so on.

Two type lists can be appended together with typelist::append.

See also:
typelist::append


The documentation for this struct was generated from the following file: