BloombergLP::bdlc::BitArray::BitArray

Constructors

Synopses

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...

Parameters

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