BloombergLP::bdlc::BitArray::BitArray

Create a bit array of the specified length and bit value.

Synopsis

Declared in <bdlc_bitarray.h>

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

Description

Create an array of binary digits having the specified initialLength and value, using the optionally specified basicAllocator to supply memory.

Parameters

NameDescription
initialLengthinitial number of bits in the array
valueinitial value for each bit
basicAllocatormemory allocator; null uses the default