MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / print

Function print

tests/TemplatesWithAutoAndLambdaTest.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6template<auto sep = ' ',
7 typename T1, typename... Types>
8void print(const T1& arg1, const Types&... args)
9{
10 std::cout << arg1;
11 auto coutSpaceAndArg = [](const auto& arg) {
12 std::cout << sep << arg;
13 };
14
15 // we end up here with multiple parameters named 'args'. Other than that it would compile
16 (..., coutSpaceAndArg(args));
17}
18
19int main()
20{

Callers 11

PrintMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
testCompareFunction · 0.85
testCompileFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
cppinsightsLinkFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected