5#include <Common/assertion.h>
19template<
typename EnumType>
22 static_assert(std::is_enum_v<EnumType>,
23 "EnumType must be an enum. Currently it is not.");
28 EnumType
operator [] (std::string_view entryName)
const;
34 std::string_view
operator [] (EnumType enumValue)
const;
39template<
typename EnumType>
43 PH_ASSERT_UNREACHABLE_SECTION();
45 return static_cast<EnumType
>(0);
48template<
typename EnumType>
52 PH_ASSERT_UNREACHABLE_SECTION();
EnumType operator[](std::string_view entryName) const
Get enum value from its name.
Definition TSdlEnum.h:40
The root for all renderer implementations.
Definition EEngineProject.h:6