[#BloombergLP-bdlb-BitStringUtil-toggle] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::toggle :relfileprefix: ../../../ :mrdocs: Invert the values of the specified `numBits` in the specified `bitString` beginning at the specified `index`. The behavior is undefined unless `bitString` has a length of at least `index + numBits`. == Synopsis Declared in `<bdlb_bitstringutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void toggle( uint64_t* bitString, std::size_t index, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#