Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
SharedBox 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
57
SharedBox Truckload::getNextBox()
58
{
Callers
1
main
Function · 0.45
Calls
1
getBox
Method · 0.45
Tested by
no test coverage detected