Constructors
Declared in <bdlc_bitarray.h>
Create an empty array of binary digits (bits).
explicit
BitArray(bslma::Allocator* basicAllocator = 0);
» more...
Create a bit array of the specified initial length.
explicit
BitArray(
std::size_t initialLength,
bslma::Allocator* basicAllocator = 0);
» more...
Create a bit array having the same value as original.
BitArray(
BitArray const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create a bit array of the specified length and bit value.
BitArray(
std::size_t initialLength,
bool value,
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| basicAllocator | memory allocator; null uses the default |
| initialLength | initial number of bits in the array |
| original | array providing the value to copy |
| value | initial value for each bit |