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

Method fixed_string

09.12-fixedString2/main.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 CharT data[N]{};
13
14 constexpr fixed_string(const CharT (&str)[N])
15 {
16 std::copy_n(str, N, data);
17 }
18};
19
20template<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