MCPcopy 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>
18auto add(const T& t, const U& u)
19{
20 return t + u;
21}
22
23template<typename T, typename U>
24// #B The arguments remain unchanged

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected