Remove old HasFlag() function

This commit is contained in:
Gymnasiast committed 2026-01-31 14:00:52 +01:00
1 parent b2fcecb79e
commit b3e2b5b3b8
1 file changed
-7
-7
View File
@@ -30,10 +30,3 @@ constexpr auto EnumValue(TEnum enumerator) noexcept
{
return static_cast<std::underlying_type_t<TEnum>>(enumerator);
}
template<typename T>
constexpr bool HasFlag(uint64_t holder, T v)
{
static_assert(std::is_enum_v<T>);
return (holder & EnumToFlag(v)) != 0;
}