MCPcopy Create free account
hub / github.com/WheretIB/nullc / f

Function f

tests/TestGeneric.cpp:1267–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265"auto average(generic ref(int) f)\r\n\
1266{\r\n\
1267 return f(6);\r\n\
1268}\r\n\
1269auto f(int x){ return x * 1.5; }\r\n\
1270return int(average(f));";
1271TEST_RESULT("specialization for function pointer", testGeneric93, "9");
1272

Callers 5

TestGeneric.cppFile · 0.70
map2Function · 0.70
map3Function · 0.70
refFunction · 0.70
lazyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected