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

Function main

07.15-genericLambdaVarArgsForward0/main.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31int main()
32{
33 // #A Logger for steering
34 auto steeringLogger = getNamedLogger("Steering"s);
35 // #B Logger for brakes
36 auto brakeLogger = getNamedLogger("Brake"s);
37
38 steeringLogger("angle"s, 90); // #C Log a steering-related message
39}

Callers

nothing calls this directly

Calls 1

getNamedLoggerFunction · 0.70

Tested by

no test coverage detected