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

Method Truckload

Exercises/Modules/Chapter 12/Soln12_07/Truckload.cpp:20–23  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected