I know this is a class that is defining a list data type.
the part that confuses me alot is this part
const list& operator=(const list& aList);
and also the this. Is the whole purpose of the struct node is to hold the data but also have another node point to the next or previous node? What about the int size? is that just stating the size of the data its holding?
1 2 3 4 5 6 7 8 9
struct node
{
data item;
node * next;
};
node* head;
int size;
};