Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ swap
Function
swap
Examples/NoModules/Chapter 17/Ex17_03/Array.h:94–97 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
92
// Swap non-member function template (optional)
93
template <typename T>
94
void swap(Array<T>& one, Array<T>& other) noexcept
95
{
96
one.swap(other); // Forward to public member function
97
}
98
99
#endif
Callers
2
Array.h
File · 0.70
swap
Method · 0.70
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected