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