| 69 | } |
| 70 | |
| 71 | void List::push_front(ListItem *itemPtr) |
| 72 | { |
| 73 | ListItem *temp = head.next; |
| 74 | if (temp) |
| 75 | { |
| 76 | temp->previous = itemPtr; |
| 77 | } |
| 78 | head.next = itemPtr; |
| 79 | itemPtr->previous = &head; |
| 80 | itemPtr->next = temp; |
| 81 | } |
| 82 | |
| 83 | void List::pop_front() |
| 84 | { |