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

Function lazy

tests/TestGeneric.cpp:978–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976"auto lazy(generic f){ return auto(){ return f(); }; }\r\n\
977auto lazy(generic f, a0){ return auto(){ return f(a0); }; }\r\n\
978auto lazy(generic f, a0, a1){ return auto(){ return f(a0, a1); }; }\r\n\
979auto lazy(generic f, a0, a1, a2){ return auto(){ return f(a0, a1, a2); }; }\r\n\
980auto lazy(generic f, a0, a1, a2, a3){ return auto(){ return f(a0, a1, a2, a3); }; }\r\n\
981\r\n\
982int foo(){ return 5; }\r\n\

Callers 1

TestGeneric.cppFile · 0.85

Calls 2

autoFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected