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

Function swap

Exercises/NoModules/Chapter 17/Soln17_01/Array.h:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104// Swap non-member function template (optional)
105template <typename T>
106void swap(Array<T>& one, Array<T>& other) noexcept
107{
108 one.swap(other); // Forward to public member function
109}
110
111#endif

Callers 3

Array.hFile · 0.70
push_backMethod · 0.70
swapMethod · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected