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

Function checkToString

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

Source from the content-addressed store, hash-verified

51}
52
53static void checkToString(int num)
54{
55 for (int idx = 0; idx < num; ++idx)
56 {
57 int i = 42;
58 double d = 7.7;
59 std::string s = std::to_string(i) + ' ' + std::to_string(d);
60 if (num == 1)
61 {
62 std::cout << s << '\n';
63 return;
64 }
65 }
66}
67
68static void checkToChars(int num)
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected