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

Exchange the values of the specified `lhs` and `rhs` objects when `TYPE` does not use a `bslma&colon;&colon;Allocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
swap(
    xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue&lt;TYPE&gt;]& lhs,
    xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue&lt;TYPE&gt;]& rhs)
requires !BloombergLP&colon;&colon;bslma&colon;&colon;UsesBslmaAllocator&lt;TYPE&gt;&colon;&colon;value;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand
| *rhs*
| right&hyphen;hand operand
|===


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