diff --git a/src/core/base_bitset_type.hpp b/src/core/base_bitset_type.hpp index 9ce8528d31..d8254bcd21 100644 --- a/src/core/base_bitset_type.hpp +++ b/src/core/base_bitset_type.hpp @@ -108,6 +108,16 @@ public: return static_cast(*this); } + /** + * Flip all bits. + * @returns The bit set + */ + inline constexpr Timpl &Flip() + { + this->data ^= Tmask; + return static_cast(*this); + } + /** * Flip the value-th bit. * @param value Bit to flip.