MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / checkFormat

Function checkFormat

08-String & Stream/code/Profile.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static void checkFormat(int num)
89{
90 for (int idx = 0; idx < num; ++idx)
91 {
92 int i = 42;
93 double d = 7.7;
94 auto s = std::format("{} {}", i, d);
95 if (num == 1)
96 {
97 std::cout << s << '\n';
98 return;
99 }
100 }
101}
102
103static void checkFormatTo(int num)
104{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected