BitSet.set

Sets the bits from the specified {@code fromIndex} (inclusive) to the specified {@code toIndex} (exclusive) to the specified value.

@param fromIndex index of the first bit to be set @param toIndex index after the last bit to be set @param value value to set the selected bits to @throws IndexOutOfBoundsException if {@code fromIndex} is negative, or {@code toIndex} is negative, or {@code fromIndex} is larger than {@code toIndex}

  1. void set(size_t bitIndex)
  2. void set(int bitIndex, bool value)
  3. void set(int fromIndex, int toIndex)
  4. void set(int fromIndex, int toIndex, bool value)
    class BitSet
    void
    set
    (,,
    bool value
    )

Meta