[#BloombergLP-bdlc-BitArray-toggle-0db] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::toggle :relfileprefix: ../../../ :mrdocs: Complement `numBits` bits in this array beginning at `index`. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void toggle( std::size_t index, std::size_t numBits); ---- == Description Complement the values of each of the specified `numBits` in this array, beginning at the specified `index`. The behavior is undefined unless `index + numBits <= length()`. == Parameters [cols="1,4"] |=== | Name| Description | *index* | starting bit position to complement | *numBits* | number of bits to complement |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#