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

Method getFirstBox

Exercises/Modules/Chapter 20/Soln20_01/Truckload.cpp:33–38  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31
32// Only thing we changed was adding "Iterator::" to the member's qualification
33SharedBox Truckload::Iterator::getFirstBox()
34{
35 // Return m_head's box (or nullptr if the list is empty)
36 m_current = m_boxes->begin();
37 return m_current != m_boxes->end() ? *m_current : SharedBox{};
38}
39
40// Only thing we changed was adding "Iterator::" to the member's qualification
41SharedBox Truckload::Iterator::getNextBox()

Callers 1

Truckload.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected