MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ForEachEnumValueRecursive_

Function ForEachEnumValueRecursive_

IntelPresentMon/CommonUtilities/Meta.h:124–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 template<typename Enum, std::underlying_type_t<Enum> MaxValue,
123 std::underlying_type_t<Enum> Value, typename Functor>
124 constexpr void ForEachEnumValueRecursive_(Functor& func)
125 {
126 if constexpr (Value < MaxValue) {
127 func.template operator()<static_cast<Enum>(Value)>();
128 ForEachEnumValueRecursive_<Enum, MaxValue, Value + 1>(func);
129 }
130 }
131
132 template<typename Enum, std::underlying_type_t<Enum> MaxValue,
133 std::underlying_type_t<Enum> Value, typename Functor, typename ReturnT>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected