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

Method getFirstBox

Examples/NoModules/Chapter 12/Ex12_17/Truckload.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50SharedBox Truckload::getFirstBox()
51{
52 // Return m_head's box (or nullptr if the list is empty)
53 m_current = m_head;
54 return m_current? m_current->getBox() : nullptr;
55}
56
57SharedBox Truckload::getNextBox()
58{

Callers 1

mainFunction · 0.45

Calls 1

getBoxMethod · 0.45

Tested by

no test coverage detected