BloombergLP::bdlc::BitArray::BitArray

Create a bit array of the specified initial length.

Synopsis

Declared in <bdlc_bitarray.h>

explicit
BitArray(
    std::size_t initialLength,
    bslma::Allocator* basicAllocator = 0);

Description

Create an array of binary digits having the specified initialLength and using the optionally specified basicAllocator to supply memory. Each bit is initialized to false (0).

Parameters

NameDescription
initialLengthinitial number of bits in the array
basicAllocatormemory allocator; null uses the default