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