| 44 | } |
| 45 | |
| 46 | void List::push_back(ListItem *itemPtr) |
| 47 | { |
| 48 | ListItem *temp = back(); |
| 49 | if (temp == nullptr) |
| 50 | temp = &head; |
| 51 | temp->next = itemPtr; |
| 52 | itemPtr->previous = temp; |
| 53 | itemPtr->next = nullptr; |
| 54 | } |
| 55 | |
| 56 | void List::pop_back() |
| 57 | { |
no outgoing calls
no test coverage detected