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

Method getFirstBox

Examples/Modules/Chapter 12/Ex12_17/Truckload.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls 1

getBoxMethod · 0.45

Tested by

no test coverage detected