exchanges the values
Declared in <nlohmann/json.hpp>
void
swap(
reference left,
reference right) noexcept(/* see-below */);
This function is potentially-throwing unless 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.
| Name | Description |
|---|---|
| left | the type of an element reference |
| right | the type of an element reference |