[#BloombergLP-bdlc-BitArray-toggle-0d1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::toggle :relfileprefix: ../../../ :mrdocs: `toggle` overloads == Synopses Declared in `<bdlc_bitarray.h>` Complement the value of the bit at the specified `index` in this array. The behavior is undefined unless `index < length()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/BitArray/toggle-0a.adoc[toggle](std::size_t index); ---- [.small]#xref:BloombergLP/bdlc/BitArray/toggle-0a.adoc[_» more..._]# 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()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/BitArray/toggle-0db.adoc[toggle]( std::size_t index, std::size_t numBits); ---- [.small]#xref:BloombergLP/bdlc/BitArray/toggle-0db.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#