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

Function swap

Examples/NoModules/Chapter 17/Ex17_04/Stack.h:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107// Conventional noexcept swap non-member function
108template <typename T>
109void swap(Stack<T>& one, Stack<T>& other) noexcept
110{
111 one.swap(other); // Forward to public member function
112}
113
114#endif

Callers 2

Stack.hFile · 0.70
swapMethod · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected