BloombergLP::bdlbb::swap

Efficiently exchange the values of the specified a and b objects.

Synopsis

Declared in <bdlbb_blob.h>

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

Description

This method provides the no-throw exception-safety guarantee if both objects were created with the same allocator.

Parameters

NameDescription
afirst blob to exchange
bsecond blob to exchange