MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / getFirstBox

Method getFirstBox

Exercises/Modules/Chapter 19/Soln19_05/Truckload.cpp:72–77  ·  view source on GitHub ↗

Only thing we changed was adding "Iterator::" to the member's qualification

Source from the content-addressed store, hash-verified

70
71// Only thing we changed was adding "Iterator::" to the member's qualification
72SharedBox Truckload::Iterator::getFirstBox()
73{
74 // Return m_head's box (or nullptr if the list is empty)
75 m_current = m_head;
76 return m_current? m_current->m_box : nullptr;
77}
78
79// Only thing we changed was adding "Iterator::" to the member's qualification
80SharedBox Truckload::Iterator::getNextBox()

Callers 1

Truckload.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected