[#BloombergLP-bdlc-BitArray-2constructor-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::BitArray :relfileprefix: ../../../ :mrdocs: Create a bit array of the specified length and bit value. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- BitArray( std::size_t initialLength, bool value, xref:BloombergLP/bslma/Allocator.adoc[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 [cols="1,4"] |=== | Name| Description | *initialLength* | initial number of bits in the array | *value* | initial value for each bit | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#