[#BloombergLP-balcl-OptionValue-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]::swap :relfileprefix: ../../../ :mrdocs: Efficiently exchange the value of this object with the value of the specified `other` object. This method provides the no‐throw exception‐safety guarantee if either `type()` is the same as `other.type()`, or neither `type()` nor `other.type()` is a type that requires allocation; otherwise, it provides the basic guarantee. The behavior is undefined unless this object was created with the same allocator as `other`. == Synopsis Declared in `<balcl_optionvalue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/balcl/OptionValue.adoc[OptionValue]& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#