Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ print
Function
print
09.12-fixedString2/main.cpp:38–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
}
37
38
void print(auto fmt, const auto&... args)
39
{
40
// #A Use the count of arguments and compare it to the size of the
41
// pack
42
static_assert(fmt.numArgs == sizeof...(args));
43
44
printf(fmt, args...);
45
}
46
47
int main()
48
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected