1 #ifndef ZSERIO_BUILTIN_BUILT_IN_OPERATORS_H_INC
2 #define ZSERIO_BUILTIN_BUILT_IN_OPERATORS_H_INC
25 template <
typename BITMASK1,
typename BITMASK2>
26 bool isSet(BITMASK1 bitmaskValue, BITMASK2 requiredMask)
28 return (bitmaskValue & requiredMask) == requiredMask;
51 uint8_t
numBits(uint64_t numValues);
60 template <
typename T, std::enable_if_t<std::is_enum_v<T>,
int> = 0>
73 template <
typename T, std::enable_if_t<zserio::is_bitmask_v<T>,
int> = 0>
76 return value.getValue();
constexpr auto valueOf(T value)
uint8_t numBits(uint64_t numValues)
bool isSet(BITMASK1 bitmaskValue, BITMASK2 requiredMask)
constexpr EnumTraits< T >::ZserioType enumToValue(T value)