Constructors
Declared in <bdlc_bitarray.h>
Create an array of binary digits (bits). By default, the array is empty and has a capacity of 0 bits. Optionally specify the initialLength (in bits) of the array. If initialLength is not specified, the default length is 0. If initialLength is specified, optionally specify the value for each bit in the initialLength. If value is not specified, the default value for each bit is false (0). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
BitArray(bslma::Allocator* basicAllocator = 0);
» more...
Create an array of binary digits having the specified initialLength and using the optionally specified basicAllocator to supply memory.
explicit
BitArray(
std::size_t initialLength,
bslma::Allocator* basicAllocator = 0);
» more...
Create an array of binary digits (bits) having the same value as the specified original array. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
BitArray(
BitArray const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create an array of binary digits having the specified initialLength and value, using the optionally specified basicAllocator to supply memory.
BitArray(
std::size_t initialLength,
bool value,
bslma::Allocator* basicAllocator = 0);
» more...