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

Function swap

Exercises/NoModules/Chapter 20/Soln20_01/Truckload.cpp:25–28  ·  view source on GitHub ↗

Optional yet conventional non-member function (forwards to member function)

Source from the content-addressed store, hash-verified

23
24// Optional yet conventional non-member function (forwards to member function)
25void swap(Truckload& one, Truckload& other) noexcept
26{
27 one.swap(other);
28}
29
30Truckload::Iterator Truckload::getIterator() const { return Iterator{ m_boxes }; }
31

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected