Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ add
Function
add
01.37-isSameConcept2/main.cpp:18–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
// #A The arguments are swapped T, U vs U, T
17
requires IsSame<U, T>
18
auto add(const T& t, const U& u)
19
{
20
return t + u;
21
}
22
23
template<typename T, typename U>
24
// #B The arguments remain unchanged
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected