[#BloombergLP-bdlc-BitArray-length] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::length :relfileprefix: ../../../ :mrdocs: Return the number of bits in this array. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t length() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#