[#nlohmann-basic_json-00-swap-0b] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::swap :relfileprefix: ../../ :mrdocs: exchanges the values == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:nlohmann/basic_json-00/reference.adoc[reference] other) noexcept(std::is_nothrow_move_constructible<value_t>::value && std::is_nothrow_move_assignable<value_t>::value && std::is_nothrow_move_constructible<json_value>::value && std::is_nothrow_move_assignable<json_value>::value); ---- == Parameters [cols=2] |=== | Name | Description | *other* | the type of an element reference |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#