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

Function print

07.24-genericLambdaVarArgsForward6/main.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

getNamedLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected