[#BloombergLP-bdlc-PackedIntArrayImp-0a-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::swap :relfileprefix: ../../../ :mrdocs: Efficiently exchange the value of this array with that of `other`. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]& other); ---- == Description This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless this array was created with the same allocator as `other`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | array with which to exchange values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#