Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ swap
Function
swap
Examples/NoModules/Chapter 18/Ex18_04/Array.h:111–114 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
109
// Swap non-member function template (optional)
110
template <typename T>
111
void swap(Array<T>& one, Array<T>& other) noexcept
112
{
113
one.swap(other); // Forward to public member function
114
}
115
116
#endif
Callers
3
Array.h
File · 0.70
swap
Method · 0.70
quicksort
Function · 0.50
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected