[#BloombergLP-bdlc-BitArray-remove-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::remove :relfileprefix: ../../../ :mrdocs: Remove `numBits` bits beginning at `index`, shifting higher bits down. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void remove( std::size_t index, std::size_t numBits); ---- == Description Remove from this array the specified `numBits`, beginning at the specified `index`. All values at indices above `index` in this array are shifted down by `numBits` positions. The length of this array is reduced by `numBits`. The behavior is undefined unless `index + numBits <= length()`. == Parameters [cols="1,4"] |=== | Name| Description | *index* | starting bit position to remove | *numBits* | number of bits to remove |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#