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

Function swap

Exercises/Modules/Chapter 18/Soln18_01/Truckload.cpp:84–87  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

82
83// Optional yet conventional non-member function (forwards to member function)
84void swap(Truckload& one, Truckload& other) noexcept
85{
86 one.swap(other);
87}
88
89Truckload::Iterator Truckload::getIterator() const { return Iterator{ m_head }; }
90

Callers 2

Truckload.cppFile · 0.70
swapMethod · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected