10 #include <ints/IntSeq.hpp> 20 1<<
static_cast<
int>(Flag);
25 template <
auto...Flags>
31 return (flagMask<Flags>|...);
37 template <
auto...Flags>
40 _combineFlags<Flags...>();
47 InMask | combineFlags<Flags...>;
54 InMask & ~combineFlags<Flags...>;
61 Mask & flagMask<Flag>;
constexpr int addFlags
Add flags to a mask at compile time.
constexpr bool getFlag
Get a given flag from a mask.
#define STATIC_ASSERT_ARE_SAME(...)
Assert if types are not the same.
constexpr int _combineFlags()
constexpr int combineFlags
constexpr int remFlags
Remove flags to a mask at compile time.