* Set whether given index is selected. updateBounds() need to be called * explicitly after setValid() call, it can be called only once after multiple * setValid() calls in a row. */
| 108 | * setValid() calls in a row. |
| 109 | */ |
| 110 | void setValid(vector_size_t idx, bool valid) { |
| 111 | BOLT_DCHECK_LT(idx, bits_.size() * sizeof(bits_[0]) * 8); |
| 112 | bits::setBit(bits_.data(), idx, valid); |
| 113 | allSelected_.reset(); |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * If range is not empty, set a range of values to valid from [start, end). |