Support emptiness check on Bloom filters.

This commit is contained in:
Matthias Vallentin 2013-07-24 13:18:19 +02:00
parent 5736aef440
commit 5769c32f1e
9 changed files with 53 additions and 0 deletions

View file

@ -253,6 +253,12 @@ public:
*/
bool Empty() const;
/**
* Checks whether all bits are 0.
* @return `true` iff all bits in all blocks are 0.
*/
bool AllZero() const;
/**
* Finds the bit position of of the first 1-bit.
* @return The position of the first bit that equals to one or `npos` if no