Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)
105
template <typename T>
106
void 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.h
File · 0.70
push_back
Method · 0.70
swap
Method · 0.70
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected