assign overloads
Declared in <bdlc_bitarray.h>
Set the value at the specified index in this array to the specified value. The behavior is undefined unless index < length().
void
assign(
std::size_t index,
bool value);
» more...
Set a range of bits in this array to the specified value.
void
assign(
std::size_t index,
bool value,
std::size_t numBits);
» more...
Replace a bit range in this array with bits from srcArray.
void
assign(
std::size_t dstIndex,
BitArray const& srcArray,
std::size_t srcIndex,
std::size_t numBits);
» more...
| Name | Description |
|---|---|
| index | bit position to set |
| value | bit value to store at index |
| numBits | number of bits to set |
| dstIndex | starting index in this array |
| srcArray | array providing the replacement bits |
| srcIndex | starting index in srcArray |