[#BloombergLP-bdlb-BitStringUtil-swapRaw]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::swapRaw
:relfileprefix: ../../../
:mrdocs:

Exchange the specified `numBits` beginning at the specified `index1` in the specified `bitString1` with the `numBits` beginning at the specified `index2` in the specified `bitString2`&period; The behavior is undefined unless `bitString1` has a length of at least `index1 &plus; numBits`, `bitString2` has a length of at least `index2 &plus; numBits`, and there is _no_ overlap between the swapped ranges of bits&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;bitstringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
swapRaw(
    uint64&lowbar;t* bitString1,
    std::size&lowbar;t index1,
    uint64&lowbar;t* bitString2,
    std::size&lowbar;t index2,
    std::size&lowbar;t numBits);
----


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