diff --git a/luna/include/luna/TypeTraits.h b/luna/include/luna/TypeTraits.h new file mode 100644 index 00000000..b9c6309c --- /dev/null +++ b/luna/include/luna/TypeTraits.h @@ -0,0 +1,4 @@ +#pragma once + +template inline constexpr bool IsBaseOf = __is_base_of(Base, Derived); +template inline constexpr bool IsPowerOfTwo = (value & (value - 1)) == 0; \ No newline at end of file