An example of the linked object classes and their use.
An example of the linked object classes and their use.
#ifndef DEBUG
#define DEBUG
#endif
#include <stdio.h>
{
public:
unsigned value;
};
extern "C" int main()
{
unsigned count = 0;
int xv = 3, xn = 5;
ints v1(&list, xv);
ints v2(&list);
v2 = xn;
ptr = &list;
while(ptr) {
switch(++count)
{
case 1:
assert(ptr->value == 3);
break;
case 2:
assert(ptr->value == 5);
}
++ptr;
}
assert(count == 2);
member ov1 = 1, ov2 = 2, ov3 = 3;
assert(ov2.value == 2);
return 0;
}
Top level include file for the GNU uCommon C++ core library.
Common namespace for all ucommon objects.
An index container for maintaining an ordered list of objects.
A double linked list object.
Template value class to embed data structure into a linked list.
A smart pointer template for iterating linked lists.