[#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&period; If `a` and `b` were created with the same allocator, then this method provides the no&hyphen;throw exception&hyphen;safety guarantee&semi; otherwise, it provides the basic guarantee&period;

== Synopsis

Declared in `&lt;ball&lowbar;userfields&period;h&gt;`

[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]#
