| 30 | } |
| 31 | |
| 32 | ListItem *List::back() |
| 33 | { |
| 34 | ListItem *temp = head.next; |
| 35 | if (!temp) |
| 36 | return nullptr; |
| 37 | |
| 38 | while (temp->next) |
| 39 | { |
| 40 | temp = temp->next; |
| 41 | } |
| 42 | |
| 43 | return temp; |
| 44 | } |
| 45 | |
| 46 | void List::push_back(ListItem *itemPtr) |
| 47 | { |
no outgoing calls
no test coverage detected