[#nlohmann-swap-05] = xref:nlohmann.adoc[nlohmann]::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-0e/reference.adoc[reference] left, xref:nlohmann/basic_json-0e/reference.adoc[reference] right) 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 | *left* | the type of an element reference | *right* | the type of an element reference |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#