Only thing we changed was adding "Iterator::" to the member's qualification
| 31 | |
| 32 | // Only thing we changed was adding "Iterator::" to the member's qualification |
| 33 | SharedBox Truckload::Iterator::getFirstBox() |
| 34 | { |
| 35 | // Return m_head's box (or nullptr if the list is empty) |
| 36 | m_current = m_boxes->begin(); |
| 37 | return m_current != m_boxes->end() ? *m_current : SharedBox{}; |
| 38 | } |
| 39 | |
| 40 | // Only thing we changed was adding "Iterator::" to the member's qualification |
| 41 | SharedBox Truckload::Iterator::getNextBox() |