nlohmann::basic_json::swap

exchanges the values

Synopsis

Declared in <nlohmann/json.hpp>

void
swap(object_t& other);

Parameters

NameDescription
othera type for an object