nlohmann::swap

exchanges the values

Synopses

Declared in <nlohmann/json.hpp>

exchanges the values

void
swap(
    reference left,
    reference right) noexcept(/* see-below */);
» more...

exchanges the values

void
swap(
    reference left,
    reference right) noexcept(/* see-below */);
» more...

Parameters

NameDescription
leftfirst value to exchange the contents with
rightsecond value to exchange the contents with