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