MCPcopy Create free account
hub / github.com/Neargye/magic_enum / static_str

Method static_str

include/magic_enum/magic_enum.hpp:302–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300class static_str {
301 public:
302 constexpr explicit static_str(str_view str) noexcept : static_str{str.str_, std::make_integer_sequence<std::uint16_t, N>{}} {
303 MAGIC_ENUM_ASSERT(str.size_ == N);
304 }
305
306 constexpr explicit static_str(const char* const str) noexcept : static_str{ str, std::make_integer_sequence<std::uint16_t, N>{} } {
307 }

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected