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

Class FixedStringContainer

09.04-fixedString1/main.cpp:20–25  ·  view source on GitHub ↗

#A Here we have a NTTP

Source from the content-addressed store, hash-verified

18
19template<fixed_string Str> // #A Here we have a NTTP
20struct FixedStringContainer {
21 void print()
22 {
23 std::cout << Str.data << '\n'; // #B Use Str
24 }
25};
26
27template<fixed_string Str> // #A Takes the fixed string as NTTP
28struct FormatString {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected