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

Method getFirstBox

Exercises/Modules/Chapter 13/Soln13_09/Truckload.cpp:70–75  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

Truckload.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected