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

Method getFirstBox

Exercises/NoModules/Chapter 12/Soln12_06/Truckload.cpp:64–69  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

62
63// Only thing we changed was adding "Iterator::" to the member's qualification
64SharedBox Truckload::Iterator::getFirstBox()
65{
66 // Return m_head's box (or nullptr if the list is empty)
67 m_current = m_head;
68 return m_current? m_current->m_box : nullptr;
69}
70
71// Only thing we changed was adding "Iterator::" to the member's qualification
72SharedBox Truckload::Iterator::getNextBox()

Callers 2

findLargestBoxFunction · 0.45
findSmallestBoxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected