| 64 | |
| 65 | template<typename MaskType, typename EnumType> |
| 66 | constexpr MaskType AsMask(std::initializer_list<EnumType> bits) noexcept |
| 67 | { |
| 68 | MaskType mask{}; |
| 69 | for(EnumType bit : bits) |
| 70 | mask |= AsBit<MaskType>(bit); |
| 71 | return mask; |
| 72 | } |
| 73 | |
| 74 | #define MASK_TYPES int32_t, uint32_t, int64_t, uint64_t |
| 75 |
nothing calls this directly
no outgoing calls
no test coverage detected