[#BloombergLP-ball-swap-0a] = 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. This method provides the no‐throw exception‐safety guarantee if either `a.type()` is the same as `b.type()` and `a` and `b` were created with the same allocator, or neither `a.type()` nor `b.type()` is a type that requires allocation; otherwise, it provides the basic guarantee. == Synopsis Declared in `<ball_userfieldvalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]& a, xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#