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

Function swap

Examples/NoModules/Chapter 17/Ex17_01A/Array.h:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82// Swap non-member function template (optional)
83template <typename T>
84void swap(Array<T>& one, Array<T>& other) noexcept
85{
86 one.swap(other); // Forward to public member function
87}
88
89#endif

Callers 2

Array.hFile · 0.70
swapMethod · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected