Create a blob that holds the same buffers as original, with a factory.

Synopsis

Declared in <bdlbb_blob.h>

Blob(
    Blob const& original,
    BlobBufferFactory* factory,
    bslma::Allocator* basicAllocator = 0);

Description

Create a blob that holds the same buffers as the specified original blob, and uses the specified factory to allocate blob buffers. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

original

blob whose buffers are shared

factory

factory used to allocate blob buffers

basicAllocator

allocator used to supply memory

Created with MrDocs