[#BloombergLP-bdljsn-swap-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::swap :relfileprefix: ../../ :mrdocs: `swap` overloads == Synopses Declared in `<bdljsn_error.h>` Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-0d.adoc[swap]( xref:BloombergLP/bdljsn/Error.adoc[Error]& a, xref:BloombergLP/bdljsn/Error.adoc[Error]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-0d.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-04.adoc[swap]( xref:BloombergLP/bdljsn/Json.adoc[Json]& a, xref:BloombergLP/bdljsn/Json.adoc[Json]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-04.adoc[_» more..._]# Exchange the values of the specified `a` and `b` arrays. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-02.adoc[swap]( xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]& a, xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-02.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-03c.adoc[swap]( xref:BloombergLP/bdljsn/JsonNull-0b.adoc[JsonNull]& a, xref:BloombergLP/bdljsn/JsonNull-0b.adoc[JsonNull]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-03c.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-088.adoc[swap]( xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]& a, xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-088.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-085.adoc[swap]( xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]& a, xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-085.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. This function provides the no‐throw exception‐safety guarantee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdljsn/swap-033.adoc[swap]( xref:BloombergLP/bdljsn/Location.adoc[Location]& a, xref:BloombergLP/bdljsn/Location.adoc[Location]& b); ---- [.small]#xref:BloombergLP/bdljsn/swap-033.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *a* | first object | *b* | second object |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#