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

Method Truckload

Exercises/NoModules/Chapter 13/Soln13_09/Truckload.cpp:19–22  ·  view source on GitHub ↗

Constructor - one Box (moved to source file to gain access to definition of Package)

Source from the content-addressed store, hash-verified

17
18// Constructor - one Box (moved to source file to gain access to definition of Package)
19Truckload::Truckload(SharedBox box)
20{
21 m_head = m_tail = new Package{ box };
22}
23
24// Constructor - vector of Boxes
25Truckload::Truckload(const std::vector<SharedBox>& boxes)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected