-
Notifications
You must be signed in to change notification settings - Fork 0
list end_item
Ned Bingham edited this page Mar 16, 2017
·
1 revision
struct end_item
A placeholder item to represent the boundaries of a linked list.
-
end_item *next, *prevare pointers to the contents of the list.
end_item()The default constructor. next and prev are both set to this to create a cycle. This way if someone tries to iterate beyond the boundaries of the list, they repeatedly just end up at the boundary.