[#BloombergLP-bdlc-BitArray-assign-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assign :relfileprefix: ../../../ :mrdocs: `assign` overloads == Synopses Declared in `<bdlc_bitarray.h>` Set the value at the specified `index` in this array to the specified `value`. The behavior is undefined unless `index < length()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/BitArray/assign-00.adoc[assign]( std::size_t index, bool value); ---- [.small]#xref:BloombergLP/bdlc/BitArray/assign-00.adoc[_» more..._]# 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()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/BitArray/assign-05.adoc[assign]( std::size_t index, bool value, std::size_t numBits); ---- [.small]#xref:BloombergLP/bdlc/BitArray/assign-05.adoc[_» more..._]# Replace the specified `numBits` in this array, beginning at the specified `dstIndex`, with values from the specified `srcArray` beginning at the specified `srcIndex`. The behavior is undefined unless `dstIndex + numBits <= length()` and `srcIndex + numBits <= srcArray.length()`. Note that, absent aliasing, this method has the same behavior as, but is more efficient than: ` remove(dstIndex, numBits); insert(dstIndex, srcArray, srcIndex, numBits); ` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/BitArray/assign-07.adoc[assign]( std::size_t dstIndex, xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& srcArray, std::size_t srcIndex, std::size_t numBits); ---- [.small]#xref:BloombergLP/bdlc/BitArray/assign-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#