Return the first set bit in the bitmap. Return -1 if no bits are set.
| 777 | |
| 778 | // Return the first set bit in the bitmap. Return -1 if no bits are set. |
| 779 | int find_first() const { |
| 780 | if (Elements.empty()) |
| 781 | return -1; |
| 782 | const SparseBitVectorElement<ElementSize> &First = *(Elements.begin()); |
| 783 | return (First.index() * ElementSize) + First.find_first(); |
| 784 | } |
| 785 | |
| 786 | // Return the last set bit in the bitmap. Return -1 if no bits are set. |
| 787 | int find_last() const { |
no test coverage detected