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

Method fixed_string

09.13-fixedString3/main.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 CharT data[N]{};
14
15 constexpr fixed_string(const CharT (&str)[N])
16 {
17 std::copy_n(str, N, data);
18 }
19};
20
21template<fixed_string Str> // #A Takes the fixed string as NTTP

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected