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; }