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

Function print

07.25-genericLambdaVarArgsForward7/main.cpp:12–21  ·  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) { std::cout << ' ' << arg; };
17
18 (..., coutSpaceAndArg(args));
19
20 std::cout << '\n';
21}
22
23template<typename T>
24concept NotFloatingPoint = not std::is_floating_point_v<T>;

Callers 1

getNamedLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected