62 template<
typename EnumType>
63 static std::string
get(EnumType value)
65 static_assert(std::is_enum_v<EnumType>,
66 "[Malena] EnumKey::get — template parameter must be an enum type.");
68 return std::string(
typeid(EnumType).name())
70 + std::to_string(
static_cast<int>(value));
82 template<
typename EnumType>
85 static_assert(std::is_enum_v<EnumType>,
86 "[Malena] EnumKey::typeKey — template parameter must be an enum type.");
88 return std::string(
typeid(EnumType).name());
Utility for generating unique, stable string keys from enum values.
static std::string typeKey()
Generate a unique string key for an enum type alone.
static std::string get(EnumType value)
Generate a unique string key for an enum value.