[#BloombergLP-bdlc-BitArray-insert-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::insert :relfileprefix: ../../../ :mrdocs: Insert into this array, beginning at the specified `dstIndex`, the specified `numBits` from the specified `srcArray` beginning at the specified `srcIndex`. All values with initial indices at or above `dstIndex` are shifted up by `numBits` positions. The behavior is undefined unless `dstIndex <= length()` and `srcIndex + numBits <= srcArray.length()`. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( std::size_t dstIndex, xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& srcArray, std::size_t srcIndex, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#