[#BloombergLP-bdlc-BitArray-assign-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assign :relfileprefix: ../../../ :mrdocs: Set the value of the specified `numBits` bits starting at the specified `index` in this array to the specified `value`. The behavior is undefined unless `index + numBits < length()`. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign( std::size_t index, bool value, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#