summaryrefslogtreecommitdiff
path: root/doc/aapl/ex_dlist.cpp
blob: c7be1f3fcc4a3a34657f24762e20a517b47bd1c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "dlist.h"

struct ListEl : public DListEl<ListEl>
{
    // List customizations
    int data;
};

ListEl els[10];

int main()
{
    DList<ListEl> list;

    list.append( &els[0] );
    list.append( &els[1] );
    list.append( &els[2] );

    return 0;
}