We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce5f6c commit 95b6570Copy full SHA for 95b6570
include/nbl/core/util/bitflag.h
@@ -27,6 +27,7 @@ struct bitflag final
27
inline bitflag<ENUM_TYPE>& operator|=(bitflag<ENUM_TYPE> rhs) { value = static_cast<ENUM_TYPE>(value | rhs.value); return *this; }
28
inline bitflag<ENUM_TYPE>& operator&=(bitflag<ENUM_TYPE> rhs) { value = static_cast<ENUM_TYPE>(value & rhs.value); return *this; }
29
inline bitflag<ENUM_TYPE>& operator^=(bitflag<ENUM_TYPE> rhs) { value = static_cast<ENUM_TYPE>(value ^ rhs.value); return *this; }
30
+ inline bool hasValue(bitflag<ENUM_TYPE> val) const { return (value & val.value) != 0; }
31
};
32
33
}
0 commit comments