[#BloombergLP-ball-swap-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::swap :relfileprefix: ../../ :mrdocs: Swap the value of the specified `a` object with the value of the specified `b` object. If `a` and `b` were created with the same allocator, then this method provides the no‐throw exception‐safety guarantee; otherwise, it provides the basic guarantee. == Synopsis Declared in `<ball_userfields.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( xref:BloombergLP/ball/UserFields.adoc[UserFields]& a, xref:BloombergLP/ball/UserFields.adoc[UserFields]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#