MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / add

Function add

01.36-isSameConcept1/main.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13// #A The arguments are swapped T, U vs U, T
14 requires IsSame<U, T>
15auto add(const T& t, const U& u)
16{
17 return t + u;
18}
19
20template<typename T, typename U>
21// #B The arguments remain unchanged

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected