MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / main

Function main

week07/examples/template2.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12int main()
13{
14 // Implicitly instantiates sum<int>(int, int)
15 cout << "sum = " << sum<int>(2.2f, 3.0f) << endl;
16 // Implicitly instantiates sum<float>(float, float)
17 cout << "sum = " << sum(2.2f, 3.0f) << endl;
18
19 return 0;
20}

Callers

nothing calls this directly

Calls 1

sumFunction · 0.70

Tested by

no test coverage detected