mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
rx/EnumBitSet: add free operator~
This commit is contained in:
parent
88869a4a26
commit
ef5da501f7
|
|
@ -204,6 +204,10 @@ template <BitSetEnum T>
|
||||||
[[deprecated("Use toBitSet(bit)")]] constexpr EnumBitSet<T> operator+(T bit) {
|
[[deprecated("Use toBitSet(bit)")]] constexpr EnumBitSet<T> operator+(T bit) {
|
||||||
return EnumBitSet<T>(bit);
|
return EnumBitSet<T>(bit);
|
||||||
}
|
}
|
||||||
|
template <BitSetEnum T>
|
||||||
|
constexpr detail::InvertedEnumBitSet<T> operator~(T bit) {
|
||||||
|
return ~toBitSet(bit);
|
||||||
|
}
|
||||||
// Binary '+' operator: bitset union
|
// Binary '+' operator: bitset union
|
||||||
template <BitSetEnum T, typename U>
|
template <BitSetEnum T, typename U>
|
||||||
requires(std::is_constructible_v<EnumBitSet<T>, U>)
|
requires(std::is_constructible_v<EnumBitSet<T>, U>)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue