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_04A/Stack.h:105–108 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
103
// Conventional noexcept swap non-member function
104
template <typename T>
105
void swap(Stack<T>& one, Stack<T>& other) noexcept
106
{
107
one.swap(other); // Forward to public member function
108
}
109
110
#endif
Callers
2
Stack.h
File · 0.70
swap
Method · 0.70
Calls
1
swap
Method · 0.45
Tested by
no test coverage detected