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

Function print

07.21-genericLambdaVarArgsForward4/main.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<typename First, typename... Rest>
11void print(First&& first, Rest&&... args)
12{
13 std::cout << "[" << first << "]";
14
15 auto coutSpaceAndArg = [](const auto& arg) {
16 std::cout << ' ' << arg;
17 };
18
19 (..., coutSpaceAndArg(args));
20
21 std::cout << '\n';
22}
23
24template<typename... Origins>
25auto getNamedLogger(Origins&&... origins)

Callers 1

getNamedLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected