[#BloombergLP-balcl-swap]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::swap
:relfileprefix: ../../
:mrdocs:

Swap the value of the specified `a` object with the value of the specified `b` object&period; This method provides the no&hyphen;throw exception&hyphen;safety guarantee if either `a&period;type()` is the same as `b&period;type()` and `a` and `b` were created with the same allocator, or neither `a&period;type()` nor `b&period;type()` is a type that requires allocation&semi; otherwise, it provides the basic guarantee&period;

== Synopsis

Declared in `&lt;balcl&lowbar;optionvalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(
    xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]& a,
    xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]& b);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
