[#nlohmann-basic_json-0e-swap-0c] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0e.adoc[basic_json<>]::swap :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:nlohmann/basic_json-0e/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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#