BloombergLP::bdljsn::swap

Exchange the values of the specified a and b objects.

Synopsis

Declared in <bdljsn_jsonnull.h>

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

Description

This exception provides the no-throw exception-safety guarantee. Note that, since a and b have the same value (a class invariant), this operation is a no-op.

Parameters

NameDescription
afirst object to exchange
bsecond object to exchange