swap overloads

Synopses

Declared in <bdljsn_error.h>

Exchange the values of the specified a and b objects.

void
swap(
    Error& a,
    Error& b);

Exchange the values of the specified a and b objects.

void
swap(
    Json& a,
    Json& b);

Exchange the values of the specified a and b arrays.

void
swap(
    JsonArray& a,
    JsonArray& b);

Exchange the values of the specified a and b objects.

void
swap(
    JsonNull& a,
    JsonNull& b);

Exchange the values of the specified a and b objects.

void
swap(
    JsonNumber& a,
    JsonNumber& b);

Exchange the values of the specified a and b objects.

void
swap(
    JsonObject& a,
    JsonObject& b);

Exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee.

void
swap(
    Location& a,
    Location& b);

Parameters

Name

Description

a

first object

b

second object

Created with MrDocs