diff options
Diffstat (limited to 'chilbert')
-rw-r--r-- | chilbert/BigBitVec.hpp | 7 | ||||
-rw-r--r-- | chilbert/FixBitVec.hpp | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/chilbert/BigBitVec.hpp b/chilbert/BigBitVec.hpp index 37ef870..30b8f82 100644 --- a/chilbert/BigBitVec.hpp +++ b/chilbert/BigBitVec.hpp @@ -249,6 +249,13 @@ public: return t; } + CBigBitVec operator~() const + { + CBigBitVec t(*this); + t.flip(); + return t; + } + CBigBitVec& operator<<=(const size_t bits) { assert(bits < size()); diff --git a/chilbert/FixBitVec.hpp b/chilbert/FixBitVec.hpp index 0bc2032..05dae1f 100644 --- a/chilbert/FixBitVec.hpp +++ b/chilbert/FixBitVec.hpp @@ -166,6 +166,13 @@ public: return t; } + CFixBitVec operator~() const + { + CFixBitVec t(*this); + t.flip(); + return t; + } + CFixBitVec& operator<<=(const size_t bits) { assert(bits < size()); |