[#BloombergLP-bdljsn-swap-03c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::swap
:relfileprefix: ../../
:mrdocs:

Exchange the values of the specified `a` and `b` objects&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonnull&period;h&gt;`

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

== Description

This exception provides the no&hyphen;throw exception&hyphen;safety guarantee&period; Note that, since `a` and `b` have the same value (a class invariant), this operation is a no&hyphen;op&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first object to exchange
| *b*
| second object to exchange
|===


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