Create a bit array of the specified length and bit value.
Declared in <bdlc_bitarray.h>
BitArray(
std::size_t initialLength,
bool value,
bslma::Allocator* basicAllocator = 0);
Create an array of binary digits having the specified initialLength and value, using the optionally specified basicAllocator to supply memory.
| Name | Description |
|---|---|
| initialLength | initial number of bits in the array |
| value | initial value for each bit |
| basicAllocator | memory allocator; null uses the default |