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_04/Stack.h:109–112 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
107
// Conventional noexcept swap non-member function
108
template <typename T>
109
void 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.h
File · 0.70
swap
Method · 0.70
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected