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

Method fixed_string

09.04-fixedString1/main.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 CharT data[N]{};
12
13 constexpr fixed_string(const CharT (&str)[N])
14 {
15 std::copy_n(str, N, data);
16 }
17};
18
19template<fixed_string Str> // #A Here we have a NTTP

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected