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

Function main

09.04-fixedString1/main.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int main()
52{
53 fixed_string fs{"Hello, C++20"};
54
55 print(FormatString<"%s, %s">{}, "Hello", "C++20");
56
57 print("%s, %s"_fs, "Hello", "C++20");
58
59 // #C We can instantiate the template with a string
60 FixedStringContainer<"Hello, C++"> fc{};
61 fc.print(); // #D For those who believe it only if they see
62 // it
63}

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
printFunction · 0.70

Tested by

no test coverage detected