MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / ConstexprString

Method ConstexprString

include/globed/util/ConstexprString.hpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22template <size_t N>
23struct ConstexprString {
24 constexpr ConstexprString(const char (&str)[N]) {
25 std::copy_n(str, N, value);
26 hash = adler32(str);
27 }
28 constexpr bool operator!=(const ConstexprString& other) const {
29 return std::equal(value, value + N - 1, other.value);
30 }

Callers

nothing calls this directly

Calls 1

adler32Function · 0.85

Tested by

no test coverage detected