[#nlohmann-basic_json-00-swap-03]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::swap
:relfileprefix: ../../
:mrdocs:

exchanges the values

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:nlohmann/basic_json-00/string_t.adoc[string&lowbar;t]& other);
----

== Parameters

[cols="1,4"]
|===
|Name|Description

| *other*
| a type for a string
|===


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