assign overloads
Synopses
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);
Set a range of bits in this array to the specified value.
void
assign(
std::size_t index,
bool value,
std::size_t numBits);
Replace a bit range in this array with bits from srcArray.
Parameters
Name |
Description |
index |
bit position to set |
value |
bit value to store at |
numBits |
number of bits to set |
dstIndex |
starting index in this array |
srcArray |
array providing the replacement bits |
srcIndex |
starting index in |
Created with MrDocs