Efficiently exchange the value of this array with the value of the specified other array. This method provides the no-throw exception-safety guarantee. The behavior is undefined unless this array was created with the same allocator as other.
other
Declared in <bdlc_compactedarray.h>
<bdlc_compactedarray.h>
void swap(CompactedArray& other);