[#BloombergLP-bdlc-BitArray-toggle-0db]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::toggle
:relfileprefix: ../../../
:mrdocs:

Complement the values of each of the specified `numBits` in this array, beginning at the specified `index`&period; The behavior is undefined unless `index &plus; numBits &lt;&equals; length()`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;bitarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
toggle(
    std::size&lowbar;t index,
    std::size&lowbar;t numBits);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
