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

Exchange the values of this object and `other`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullableallocatedvalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue]& other);
----

== Description

Efficiently exchange the value of this object with the value of the specified `other` object&period; This method provides the no&hyphen;throw exception&hyphen;safety guarantee&period; The behavior is undefined unless this object was created with the same allocator as `other`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| object with which to exchange values
|===


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